jake_604
07-17-2003, 02:13 PM
When using the URL jump box,
<FORM NAME="jumpurl1" onSubmit="return jumpit()">
<INPUT TYPE="text" SIZE=30 NAME="jumpurl2">
<INPUT TYPE="button" VALUE="Find a Job" onClick="jumpit()">
</FORM>
<SCRIPT>
function jumpit(){
window.location=document.jumpurl1.jumpurl2.value+'.html'
return false
}
</SCRIPT>
How do I edit the script to make the entered URL a different folder. Eg. If the user enters "18080", how do I make it so that the page that the user is taken to is in the folder called "jobs"?
<FORM NAME="jumpurl1" onSubmit="return jumpit()">
<INPUT TYPE="text" SIZE=30 NAME="jumpurl2">
<INPUT TYPE="button" VALUE="Find a Job" onClick="jumpit()">
</FORM>
<SCRIPT>
function jumpit(){
window.location=document.jumpurl1.jumpurl2.value+'.html'
return false
}
</SCRIPT>
How do I edit the script to make the entered URL a different folder. Eg. If the user enters "18080", how do I make it so that the page that the user is taken to is in the folder called "jobs"?