Please somebody take a look at this site unlock-the-iphone.com Is it using javascipt? Anyone know how to make it.. Thanks for helping..
I saw the site but was not able to crack the mechanism by which they are implementing this. You can trigger a javascript function on the 'onunload' event but it will cause that function to be performed each time the page is refreshed, closed or when u navigate to other place. Here is a code that detects browser close in IE. But it won't work if you navigate to a different page.(using a link or address bar, or refresh using mouse.) But i think you can do this using AJAX and some server-side languages. Hope this helps.