Menu
I keep having an issue with onunload. I’m trying to get an alert message to pop up when either the window or the tab is closed, but whenever I click to a defferent page within my website, it is considered to have closed the current page, so it triggers the alert.
Here is the first body tag:
[code=html]<body onunload=”alert(‘Thanks for visiting Pierce County Customs!’)” bottommargin=”0″ leftmargin=”0″ marginheight=”0″ marginwidth=”0″ rightmargin=”0″ topmargin=”0″ background=”background.jpg” text=”#EAF5FF”>
I thought this was supposed to work, any help would be appreciated greatly.