js 强制弹出窗口代码研究-又一款代码
时间:2021-01-25 10:30:52|栏目:|点击: 次
复制代码 代码如下:
<script language="JavaScript">
var paypopupURL = "https://www.jb51.net";
var randkey = '13'; //bypass IE functions
function setupActiveX(){
document.write(' <INPUT ID="autoHit" TYPE="TEXT" ONKEYPRESS="showActiveX()">');
}
function openActiveX(){
document.getElementById('autoHit').fireEvent("onkeypress",(document.createEventObject().keyCode=escape(randkey).substring(1)));
}
function showActiveX(){
var newWindow=window.open(paypopupURL,'abcdefg','width=200,height=200,top=50,left='+(screen.width-250));
}
setupActiveX();
openActiveX();
self.focus();
</script>
栏 目:
下一篇:Powershell小技巧之通过EventLog查看近期电脑开机和关机时间
本文标题:js 强制弹出窗口代码研究-又一款代码
本文地址:http://www.codeinn.net/misctech/51151.html






