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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

JScript NOT working with Netscape!!??

Status
Not open for further replies.

Christiana

Technical User
Apr 24, 2001
21
0
0
CY
Hi you all!
I'm using this way to call a JScript function which validates the form.
<form action=&quot;add.asp&quot; method=&quot;post&quot; name=&quot;Add&quot; onsubmit=&quot;return Form_Validator(this)&quot;>

and here's the function

<script Language=&quot;JavaScript&quot;><!--
function Form_Validator(theForm)
{
if (theForm.Text1.selectedIndex == 0)
{ alert(&quot;The selection for Text is not valid.&quot;);
theForm.Text1.focus();
return (false);}
return (true);
}
//--></script>

It works fine with IE but not with Netscape. (I use Net. 6)
PLS HELP
Thanks in advance
 
Hi Christiana,

what is not working in Netscape?
i just test it with my Netscape 4 and Netscape 6, they both works fine. Maybe you forgot to include the submit button?

hope this helps, Chiu Chan
WebMaster & Software Engineer
emagine solutions, inc
cchan@emagine-solutions.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top