PDA

View Full Version : URL Script to Frame HELP!!!! Very Simple I think!!


bill101
12-17-2002, 01:43 AM
I am trying to use the URL script as below:

<form name="jumpurl1" onSubmit="return jumpit()" >
<span class="medBla">Address</span>
<input type="text" size=30 name="jumpurl2" value="http://" class="SearchFormElement">
<input type="button" value="Go!" onClick="jumpit()" class="searchbutton">
</form>
<script>

/*
URL jump box
By JavaScript Kit (http://javascriptkit.com)
Over 200+ free scripts here!
*/

function jumpit(){
window.location=document.jumpurl1.jumpurl2.value
return false
}
</script>

-------------------------

But I need to target a frame - I have tried the normal Target="FrameName" but nothing - any idea?

Skyzyx
12-17-2002, 01:51 AM
Try this:


function jumpit()
{
parent.frames["FrameName"].location=document.jumpurl1.jumpurl2.value;
return false;
}

bill101
12-17-2002, 02:01 AM
Thanks - works no problem!!!!!!