|
-
Jan 18th, 2001, 01:42 AM
#1
Thread Starter
Hyperactive Member
Hello,
I have this jscript function which works perfectly in IE, but not in Netscape. When I click the submit button in NS - nothing happens - no error, no "do you want to debug" - nothing.
Here's the function... it just checks what was selected in a dropdown(lstcountry) and then loads some page accordingly.
My submit button code is just something like
<input type="button" onclick="submitit()"
function submitit() {
// get country
var sCountry = new String(document.frmcountry.lstcountry.value.substring(0,1).toUpperCase());
var sActionPage = new String();
// determine which page to send form to
if (sCountry == "*") {
sActionPage = "city.asp";
} else {
sActionPage = "province.asp";
}
// set form action
document.frmcountry.action = sActionPage;
// submit form
document.frmcountry.submit();
return;
}
</script>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|