Trying to use a form box with HTML to create a url that can be used to change an IFRAME. This is what I currently have.
<input type="url" id="URL" value="">
<button onclick="webFunct()">Go!</button>
<br><a target='_blank' href= id="ViewURL" target="WebViewer></p>
<script>
function webFunct() {
var x = document.getElementById("URL").value;
document.getElementById("ViewURL").innerHTML = x;
}
</script>
<iframe width="100%" height="640px" name="WebViewer">
</iframe>
I like the form box to change the IFRAME to the website that was entered by the user to visit. I know this information is minimal and possibly vague but I normally don't ask for help and I don't know what else to ask.
Original code from: http://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_url_get
You can set URL of iframe
programmatically:
document.getElementById('web-view').src = url;
Check this out: http://jsfiddle.net/andunai/d1zavddu/
However, please note that many websites, e.g. google.com
and yahoo.com
do not permit getting themselves inserted into iframe
s.
I have a jointjs demo code, which has basic shapes on paper, i want to increase the size of the shape, or highlight the shape on pointer click or cursor moved on the shape, sample demo code goes here ...
I have a jointjs demo code, which has basic shapes on paper, i want to increase the size of the shape, or highlight the shape on pointer click or cursor moved on the shape, sample demo code goes here ...
Let's say I have a row of divs like here: jsfiddle.net/AlphaCrack/veuc80he/1/ I wan't to animate them separately but keeping the same id because I may have to create tons of divs like those and I don'...
Let's say I have a row of divs like here: jsfiddle.net/AlphaCrack/veuc80he/1/ I wan't to animate them separately but keeping the same id because I may have to create tons of divs like those and I don'...
I am using bootstrap validator v3.1.1 and I am trying to add regexp validation for a text box. I want to don't allow the user to introduce the space ' ', but alow to introduce letters, numers and ...
I am using bootstrap validator v3.1.1 and I am trying to add regexp validation for a text box. I want to don't allow the user to introduce the space ' ', but alow to introduce letters, numers and ...
Hey everybody¡ I'm trying to paint a screen with multiple models and associated views in backbone. For this, I have respestive ajax calls to the server, to get data for this vies. First I considered ...
Hey everybody¡ I'm trying to paint a screen with multiple models and associated views in backbone. For this, I have respestive ajax calls to the server, to get data for this vies. First I considered ...