PDA

View Full Version : form actions in an iframe


andrewsheldon98
07-15-2002, 05:36 PM
how can i change the code below so when i type a url in the text box the link will open up in a specified frame window called "gohttp".

<form name="jumpurl1" onSubmit="return jumpit()">
<input type="text" size=30 name="jumpurl2" value="http://">
<input type="button" value="Go!" onClick="jumpit()">
</form>
<script>
function jumpit(){
window.location.=document.jumpurl1.jumpurl2.value
return false
}
</script>

joh6nn
07-15-2002, 07:03 PM
<script>
function jumpit() {
window.frames["gohttp"].location = document.jumpurl1.jumpurl2.value
return false;
}
</script>