Results 1 to 2 of 2
Related
-
Frame Help Forum: HTML Forum
Replies: 7 -
Frame help Forum: HTML Forum
Replies: 5 -
frame help Forum: HTML Forum
Replies: 2 -
frame help! Forum: HTML Forum
Replies: 1
-
10-22-2000, 04:20 AM #1
Frame Help, Form completes in a different frame, how?
How can I have a my users click the selection on the scroll down menu and when the press go it opens up the new window in another frame?
-
10-22-2000, 09:14 AM #2
There are 2 you need to copy and paste into your page
This part goes inbetween the <head> and the</head> tags, although not immediately after <head>, this first line should be reserved for the <title>
Also you would need to change URL to the name of the frame (I have not tested this in another frame, but it seems like it would work)If it does not work let me know.
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function formHandler(form){
var URL = document.form.site.options[document.form.site.selectedIndex].value;
window.location.href = URL;
}
// End -->
</SCRIPT>
This part gets placed inside the body where ever you want it.
<form name="form">
<select name="site" size=1>
<option value="">Go to....
<option value="http://www.yahoo.com">Yahoo
<option value="http://www.spaceports.com">Spaceports
<option value="http://apollo.spaceports.com/~ahfb">HTML Help
</select>
<input type=button value="Go!" onClick="javascript:formHandler(this)">
</form>
Last edited by HTML; 05-19-2002 at 08:09 AM.