stoi2m1
May 30th, 2008, 01:17 AM
I have an OnBeforeUnload popup function working. But I would like the function to exit before displaying the message if the search button on the page is clicked.
window.onbeforeunload = confirmexit();
function confirmexit()
{
//do something
if (search button clicked)
{
end function
} else {
return exitMessage;
}
}
How do I determine if the search button is clicked.
Thank You,
Jesse
window.onbeforeunload = confirmexit();
function confirmexit()
{
//do something
if (search button clicked)
{
end function
} else {
return exitMessage;
}
}
How do I determine if the search button is clicked.
Thank You,
Jesse