Hi,
Please help me,
Here i have a problem
When i am trying to close the main browser i need to popup a confirmation window
actually i had a code that is working on IE browser with some issues
Here is my code
[HTML]<html>
<head>
<script type='text/javascript'>
var browserName=navigator.appName;
if (browserName=="Microsoft Internet Explorer")
{
function onBeforeUnloadAction(){
return "With Out Logout You Cann't Login Again!";
}
window.onbeforeunload = function(){
if((window.event.clientX<=-1) ||(window.event.clientY<=-1)){
return onBeforeUnloadAction();
alert(onBeforeUnloadAction());
}
}
}
</script>
</head>
<body >
</body>
</html>
[/HTML]
But i have a problem in above program which should not happen
1.While refreshing the browser by pressing the refresh button and pressing the back button in the IE browser.
and I should make it work on mizilla also
2. In the Mizilla browser it is not working i need to be work on this browser also
3.It should populate when and only i pressed on window close button
Please any body give me suggesion
Thanking you,