<html>
<head>
<script type="text/javascript">
var myclose = false;
function ConfirmClose()
{
if (event.clientY < 0)
{
myclose = true;
}
}
function HandleOnClose()
{
if (myclose==true)
{
window.open('ht tp://www.google.com' );
}
}
</script>...
User Profile
Collapse
-
Here i am giving sample code
<html>
<head>
<script type="text/javascript">
var myclose = false;
function ConfirmClose()
{
if (event.clientY < 0)
{
myclose = true;
}
}
function HandleOnClose()
{
if (myclose==true)
{
window.open('ht tp://www.google.com' );...Leave a comment:
-
prasadsurya started a topic Problem with Browser closing event when go forward by the help of back arrowin JavascriptProblem with Browser closing event when go forward by the help of back arrow
My requirement is, i need to capture an event when user closing browser i need to open a pop up window. I got the code which is working fine. But when i go forward and came back to the previous page via back arrow it's showing pop up window but with the help of Backspace from keyboard it's not showing pop up window the same for forward arrow.Below is my sample code:
<html>
<head>
<script type="text/javascript">...
No activity results to display
Show More
Leave a comment: