Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Script seems to work okay in IE but not Firefox - simple mistake?

Status
Not open for further replies.

skwurl

Technical User
Sep 30, 2005
87
On this page:


I setup a script that alerts the user if they dont select a country.

The alert works in IE but not Firefox. Any ideas? The script is:

<script Language="JavaScript">
<!--
function confirm_country()
{

if (Request.country.selectedIndex == 0)
{

alert("Please select a country");

Request.country.focus();
return (false);
}

return (true);
}
//--></script>
 
Ah, your first mistake is working out which language you are using.
This forum is for Java, not Javascript, questions.

--------------------------------------------------
Free Java/J2EE Database Connection Pooling Software
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top