Forum Moderators: open
I have a live chat application and when the user closes the chat window either by clicking on the X in the corner of the chat window or clicking on the close window link I want a new pop-up window to open with a customer survey.
So I guess I need to detect if a child window has been closed and if so then open a new child window with the survey.
I've tried this
function OpenWin(){
popup=window.open('survey.html', 'result', 'scrollbars,resizable,width=640,height=480')
}
function ifclosed() {
if (window.close) {
alert("closing")
OpenWin()
}
}
body onunload="ifclosed()
But I'm not getting anywhere...
Any ideas?