Forum Moderators: open

Message Too Old, No Replies

onUnLoad Alert :: Basic Stuff

onUnLoad

         

cmatcme

5:31 pm on Feb 28, 2005 (gmt 0)

10+ Year Member



My code is not working:

onUnLoad="window.alert('First Line' + '\n\nNew Line')"

This code is place in my body tag with the background colour, text colour, onLoadAlert function which works properly.

Are these many functions per one tag the cause of it not working or is it my bad coding.

The onLoadAlert function and the onUnLoadAlert function look indentical apart from the Un part.

monkeythumpa

5:37 pm on Feb 28, 2005 (gmt 0)

10+ Year Member



Do you have a popup blocker istalled? If you do, turn it off/disable/uninstall it and try your code again.

cmatcme

5:43 pm on Feb 28, 2005 (gmt 0)

10+ Year Member



Yes, but it doesn't block alerts and if it did, it should block the onLoad alert.