Created
May 28, 2012 08:18
-
-
Save tokune/2817974 to your computer and use it in GitHub Desktop.
Revisions
-
tokune created this gist
May 28, 2012 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,17 @@ <SCRIPT LANGUAGE="JavaScript"> window.onload=function(){ document.getElementById("open").onclick=function(){ var url="http://pinban.com/oauth/weibo/binding/"; var win=window.open(url); var timer = setInterval((function(win){ return function(){ if (win.closed) { alert("fuck off!!"); clearInterval(timer); } }; })(win),1000); } } </SCRIPT> <input id="open" type="button" value="open"/>