Forum Moderators: open
I have a html form with few fields and a simple javascript form validator. This javascript is called in a separate .js file which in included in the <head> section of the html file.
<head>
<script language="JavaScript" type="text/javascript" src="scripts/formvalidate.js"></script>
</head>
Now, the same form works with IE and does not work with Netscape 7.1. In Netscape, without giving any error the form moves on to next page after clicking the "Submit" button.
Please help!
With warm regards
Rajiv
So, the problem with Netscape was about calling an .js file.
As of now the form and the html file is up and live for visitors to send their queries. But, the question still hangs as to why Netscape does not allow .js filed to be called. Any comments regarding this would be highly appreciated.
Thank you once again for your input
With warm regards
Rajiv
If you have Norton AntiVirus or Firewall installed, it will insert a piece of code so javascript errors are supressed.
[edited by: DrDoc at 4:58 pm (utc) on July 5, 2004]
[edit reason] typo [/edit]
Right. NN has a Javascript Console that comes in quite handy for troubleshooting. Another way to get there is from the menu -- Tools¦Web Development¦JavaScript Console. One thing I do notice is that you are using a deprecated attribute [w3.org],
language="JavaScript". You can omit that attribute now since you have the
typeattribute specified.
<script type="text/javascript" src="scripts/formvalidate.js"></script>
[edited by: DrDoc at 4:59 pm (utc) on July 5, 2004]
[edit reason] typo in quote [/edit]