In JS i tried something like this,
window.onbeforeunload = function() {
window.open('http://www.msn.com','_self');
return 'close?';
}
but it doesn't redirect the page, but the return statement is displayed.
how can i do to archieve redirect a specify page without any alert?