johncrook
05-29-2003, 08:50 AM
Hi - I am writing a page using FrontPage2000 and using a page border to make things easier for others to add content to the site. When I open up the page (<root>/index.htm)which calls the border (<root>/_border/top.htm) the form below does not function yet it does in the border page. What do I need to do to correct this? Do I add a location for the handler as well?
This is the code:
<head> etc...
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function formHandler(form){
var URL = document.form.site.options[document.form.site.selectedIndex].value;
window.location.href = URL;
}
// End -->
</SCRIPT>
</head>
this is the form:
<body>
<form name="form">
<p align="left">
<b><font face="Verdana" size="2" color="#990099">Visit our other sections:</font><font face="Verdana" size="2" color="#800080">
<select name="site" size=1 onChange="javascript:formHandler()" style="font-size: 10pt; font-family: Verdana">
<option selected>-- Click here! --
<option value="epilepsy/index.htm">Epilepsy Home Page</option>
<option value="http://www.GetGoing.org.uk">Free Holidays Abroad</option>
<option value="searchstigma/index.htm">Search Stigma</option>
</select>
</form>
</body>
This is the code:
<head> etc...
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function formHandler(form){
var URL = document.form.site.options[document.form.site.selectedIndex].value;
window.location.href = URL;
}
// End -->
</SCRIPT>
</head>
this is the form:
<body>
<form name="form">
<p align="left">
<b><font face="Verdana" size="2" color="#990099">Visit our other sections:</font><font face="Verdana" size="2" color="#800080">
<select name="site" size=1 onChange="javascript:formHandler()" style="font-size: 10pt; font-family: Verdana">
<option selected>-- Click here! --
<option value="epilepsy/index.htm">Epilepsy Home Page</option>
<option value="http://www.GetGoing.org.uk">Free Holidays Abroad</option>
<option value="searchstigma/index.htm">Search Stigma</option>
</select>
</form>
</body>