Hi Everybody,
I have a popup should be raised when i close a perticular window.i have written a javascript function . And i am calling that function with onunload event.But the problem is whenever i click the refresh button i am getting the popup.
I dont want it to be happened when i click refresh button because I need the popup only when i close the window.So Please ,if anybody knows the solution,i will be glad to know it.
mycode is like this........... ..
[HTML]
<script>functio n exitPopup()
{
window.open("Us erESurvey.php", "ExitPopup","he ight=500,width= 510")
}
</script>
<input type='button' name="how" onclick="exitPo pup()">
[/HTML]
I have a popup should be raised when i close a perticular window.i have written a javascript function . And i am calling that function with onunload event.But the problem is whenever i click the refresh button i am getting the popup.
I dont want it to be happened when i click refresh button because I need the popup only when i close the window.So Please ,if anybody knows the solution,i will be glad to know it.
mycode is like this........... ..
[HTML]
<script>functio n exitPopup()
{
window.open("Us erESurvey.php", "ExitPopup","he ight=500,width= 510")
}
</script>
<input type='button' name="how" onclick="exitPo pup()">
[/HTML]
Comment