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!

Netscape error

Status
Not open for further replies.

wuah

Programmer
Mar 15, 2001
42
DK
I use this tag in my body tag: onUnload="javascript:window.location.reload()"

that is:

<body onUnload=&quot;javascript:window.location.reload()&quot;>

I use it to get a cookie to work.
I only have the problem in Netscape Nav.

When I try to close the browser it gives me an error and close Netscape all togehter and I have to restart the browser. Any ideas why?

I also tried to link to another site (unload.htm), but that won't work either. It simply stays on the first page (the one with the onUnload javascript..)

Any help for me?

Greetings

Rasmus
 
i dount this is will solve your problem but it may.....and out of interest anyway you dont need the javascript: in the onunload command. as onunload is an event handler the browser already expects a script response so you do not need to define it in the same way as in say a href attribute.

it may sort it for you. i dont know. netscape is a peculiar beast.

good luck

rob
 
Thanks, but it still works, but it doesn't help with the Netscape problem.

I can't link from the initial page to another with this script in Netscape.

Why is that?

Greetings
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top