Hi Guys
I am developing a form in which a window should popup when the user abondons the page.
This page contains 3 buttons.
1) Submit button
2) cancel button
3) goback button.
This popup window should popup in all the cases except the user clicks on
submit button.
I have written a javascript function which will popup a window.
But I dont know how to control as per the event.
Any help will be appreciated.
Here is the javascript function
@@@@@@@@@@@@@@@@
Code:
function SurveyPopup() {
if (window.showModalDialog)
{
Surveywindow=window.showModalDialog('Popup.htm','Surveywindow','center:yes;dialogWidth:300px;dialogHeight:200px')
}
else
{
Surveywindow=window.open("Popup.htm","Surveywindow","location=1,width=300,height=200,menubar=0,resizable=0,modal=yes")
}
}
}
</script>
</head>
<body onunload="SurveyPopup()">
@@@@@@@@@@@@@@@@@@@@
Thanks in advance
I am developing a form in which a window should popup when the user abondons the page.
This page contains 3 buttons.
1) Submit button
2) cancel button
3) goback button.
This popup window should popup in all the cases except the user clicks on
submit button.
I have written a javascript function which will popup a window.
But I dont know how to control as per the event.
Any help will be appreciated.
Here is the javascript function
@@@@@@@@@@@@@@@@
Code:
function SurveyPopup() {
if (window.showModalDialog)
{
Surveywindow=window.showModalDialog('Popup.htm','Surveywindow','center:yes;dialogWidth:300px;dialogHeight:200px')
}
else
{
Surveywindow=window.open("Popup.htm","Surveywindow","location=1,width=300,height=200,menubar=0,resizable=0,modal=yes")
}
}
}
</script>
</head>
<body onunload="SurveyPopup()">
@@@@@@@@@@@@@@@@@@@@
Thanks in advance