124
rated 0 times
[
125]
[
1]
/ answers: 1 / hits: 38057
/ 11 Years ago, wed, march 20, 2013, 12:00:00
I've try this:
<body onunload=LogoutNoAsk();> </body>
and the function is:
function LogoutNoAsk()
{
alert(Please press the Logout button to logout.);
parent.close();
}
When I press close which is the 'X' button on the top right of the window, it close straightaway without the warning message. What's wrong?
More From » javascript