PDA

View Full Version : js not working in netscape


shellyblake
12-31-2001, 03:34 PM
please help! I have a simple javascript that I added to a client's index page and it works in IE but not netscape. I don't use netscape so I had a friend test it.
there is a LOAD of other crap in her HTML that another designer put in there so i think that might be the problem. I'm not really familiar w/ netscape but i'm pretty sure my popup script should work in both IE & Netscape (it's a pretty simple script).
here's the link:
http://www.lauraweaver.com
the new script is a popup that loads on page open
i noticed that the old designer also had a load on open script in there (i think for loading that dorky song) but as i'm not totally versed in js i have no idea!
my netscape friend suggest that maybe i need to combine the two onload commands or something?
any ideas?
TIA,
shelly the novice.

Dr. Web
12-31-2001, 04:29 PM
usually when you put something like: onload="do this" onLoad="do that" the browser will ignore on of them. The correct way is to place the functions on the same onload event, and seperate them with a semicolon like so:

<body onLoad="doThis(); doThat()">

Hope this helps!