View Single Post
Old 08-04-2007, 05:20 AM  
polle54
Confirmed User
 
Join Date: Jul 2004
Location: The Beach
Posts: 4,626
actually when I come to think of it... the onunload event fires after the unload so you might wanna look for another event

<script type="text/javascript">
function MsgOkCancel()
{
var fRet;
fRet = confirm('Are you sure?');
if (fRet==true)
{
//fire unload event here.
}
}
</script>

but just consider these bumps... can't remember which event that fires before onunload.
__________________
ICQ# 143561781
polle54 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote