<script type="text/JavaScript">
var show = 1;
function closeIt()
{
if(show == 1)
{
return "Don't leave your work behind.Otherwise you are outside the Game..";
return false;
}
else
{
//code
}
}
window.onbeforeunload = closeIt;
</script>
var show = 1;
function closeIt()
{
if(show == 1)
{
return "Don't leave your work behind.Otherwise you are outside the Game..";
return false;
}
else
{
//code
}
}
window.onbeforeunload = closeIt;
</script>
No comments:
Post a Comment