
October 15th, 1999, 08:38 PM
|
|
Guest
|
|
Posts: n/a
Time spent in forums:
Reputation Power:
|
|
|
Incidentally, if you want the page to change as soon as the user select a country (without having to click "Submit"), the code would look like this:
<HTML>
<HEAD>
<SCRIPT LANGUAGE="javascript">
function direct (slct) {
switch (slct.selectedIndex) {
case 0:
self.document.location.href="canada.html";
break;
case 1:
self.document.location.href="us.html";
break;
}
}
</SCRIPT>
</HEAD>
<BODY>
<FORM>
<SELECT NAME="Country" onChange="direct(this);">
<OPTION>Canada</OPTION>
<OPTION>United States</OPTION>
</SELECT>
</FORM>
</BODY>
</HTML>
Naturally, replace canada.html with the page that you want for Canada and replace us.html with the page that you want for the U.S.
-- Christopher
(I hope this works)
|