当前位置:Gxlcms > JavaScript > js 强制弹出窗口代码研究-又一款代码

js 强制弹出窗口代码研究-又一款代码

时间:2021-07-01 10:21:17 帮助过:2人阅读

代码如下:
<script language="JavaScript">
var paypopupURL = "//www.gxlcms.com";
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>

人气教程排行