Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here


Netscape/IE differences

My javascript works in IE, but not Netscape by bgreenhouse
Posted: 26 Oct 01

This is the problem I had:  I had a nice validation function that worked in IE, but wouldn't work in Netscape, the problem being when I called it to focus back on the offending element of the form (the one that wasn't filled in properly), Netscape wouldn't do it.  After a lot of searching, I figured out that it was because my form was in a layer made with the <div> tag.  Apparently, in Netscape, JavaScript finds it difficult to access things in these layers if they have a style attribute in them (e.g. <div style=blablabla>).  I'm sure that there must be a better way around this, but the way I found it for now is to actually put your function within that layer.  After the opening <div> tag, put in a <script> tag and put your function right there.  It seems to work pretty well.

What a pain in the a@#.  I hope this saves you some of the time it took me.


Back to Javascript FAQ Index
Back to Javascript Forum

My Archive

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close