I have seen blogspot blogs auto forward to a different url(different blog) when manually stop the loading process of a webpage while it is being loaded. Some template designers create templates like that if a blog which uses their template, is disturbed while it is being loaded, it automatically get forwarded into the designer's blog (by disturb I mean manually stop the page loading process by clicking the 'stop loading button' in url bar). I've seen this happens in Firefox browser most of the times, but not in Chrome. I want to know how to do such an auto forwarding to another url when the loading process of a webpage is manually stopped while it is being loaded. And how to stop a blog being auto forwarded to any other site when a blog's page loading process is manually stopped while loading. What is the code for that?
Thank you very much!
Found this code parts from net with the help of comments, I think this code has something to do with it. If anyone knows how to do what I asked, with this code please help.
window.onbeforeunload = onbeforeunload_Handler;
function onbeforeunload_Handler() {
window.location = "URL";
}
document.onstop = OnStopDocument;
function OnStopDocument () {
window.location = "URL";
}
window.onunload = onunload_Handler;
function onunload_Handler() {
window.location = "URL";
}