Well, I found that the confirm dialog actually is the result of handling of
windows.onbeforeunload()
in javascript, just like this:
window.onbeforeunload = function() {
return "Are you really want to exit?";
}
So my question now is what is the event for the callback
windows.onbeforeunload()
?
Can I trigger the event in my own browser? and how?
Does anyone can help?