i am using smoke.js to create some neat alerts 🙂
the problem comes when i try to use it on the onbeforeunload event.
i place it like this:
<body onbeforeunload="javascript:tstconfirm();">
but looks like the script gets unloaded or something because the script doesn’t work.
if i try:
<body onbeforeunload="javascript:alert('test');">
the alert works.
any ideas on how to fix this ?
thanks
fixed.