I am using a drop-down box that FrontPage builds for you, as a drop down menu.
Here is the code FrontPage creates (with values you insert):
What I want it to do is go to page1.htm when "web page 1" is selected, and the "submit" button is pressed, and likewise with the other pages.
I am guessing it can be done with a series of "if" statements, a function inside each one, and included in that function would be: location.href =
Can anyone tell me what code to use, and where to place it?
Thanks,
Douglas
Here is the code FrontPage creates (with values you insert):
Code:
<form method="POST" action="--WEBBOT-SELF--">
<!--webbot bot="SaveResults"
U-File="C:\Users\Douglas\Documents\Test Website\_private\form_results.txt"
S-Format="TEXT/CSV" S-Label-Fields="TRUE" -->
<p><select size="1" name="D1">
<option value="page1.htm">web page 1</option>
<option value="page2.htm">web page 2</option>
<option value="page3.htm">web page 3</option>
</select>
<input type="submit" value="Submit" name="B1">
<input type="reset" value="Reset" name="B2"></p>
</form>
I am guessing it can be done with a series of "if" statements, a function inside each one, and included in that function would be: location.href =
Can anyone tell me what code to use, and where to place it?
Thanks,
Douglas
Comment