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

What is wrong with this code??? 1

Status
Not open for further replies.

celley

Programmer
Jul 31, 2000
54
A2
What is wrong with this code?&nbsp;&nbsp;Works in IE and not in Netscape..... go figure.... :) <br><br><br><br>&lt;SCRIPT LANGUAGE=&quot;JavaScript&quot;&gt;<br> function checkInput() {<br>&nbsp; if (document.form.sum.value == 100){<br>&nbsp;&nbsp; form.submit();<br> }<br> else { <br> alert(&quot;The total has to equal 100 points!&quot;);<br> return false;<br> }<br> }<br> &lt;/SCRIPT&gt;
 
hmm, I belive it has to do with the &quot;document.&quot; part, netscape uses a different name, which is compatible with IE, cant remeber what it is. But Least you know the part at fault(possibly) <p>Karl<br><a href=mailto:kb244@kb244.com>kb244@kb244.com</a><br><a href= </a><br>Experienced in : C++(both VC++ and Borland),VB1(dos) thru VB6, Delphi 3 pro, HTML, Visual InterDev 6(ASP(WebProgramming/Vbscript)<br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top