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 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