Hi ,
i'm using following code to submit a page
function onClose()
{
alert("Closing . . . ");
var myHiddenField = document.getEle mentById('Hidde nField1');
myHiddenField.v alue = "True";
document.form1. submit();
alert("Submited . . . ");
}
<body onunload="onClo se()" >
this works fine with single page but when i use it in asp.net 2.0 Master Page the page doesn't submit at all
Basically i want to execute some code if browser window is closed
Any solutions
i'm using following code to submit a page
function onClose()
{
alert("Closing . . . ");
var myHiddenField = document.getEle mentById('Hidde nField1');
myHiddenField.v alue = "True";
document.form1. submit();
alert("Submited . . . ");
}
<body onunload="onClo se()" >
this works fine with single page but when i use it in asp.net 2.0 Master Page the page doesn't submit at all
Basically i want to execute some code if browser window is closed
Any solutions