document.body.oncopy = function(){ var truthBeTold = window.confirm("请登录网站后继续!" ); if (truthBeTold) { OpenWindow=window.open("http://www.safehoo.com/user/login.aspx", "newwin",""); } else { return false;}; setTimeout( function () { var text = clipboardData.getData("text"); if (text) { text = "\r\n请登录网站后继续!本文网址:"+location.href; clipboardData.setData("text", text); } }, 100 ) }; document.body.oncontextmenu = function(){ var truthBeTold = window.confirm("请登录网站后继续!" ); if (truthBeTold) { OpenWindow=window.open("http://www.safehoo.com/user/login.aspx", "newwin",""); } return false; };