点弹代码 点击页面任何位置都可以弹出页面效果代码
时间:2021-04-18 09:51:27|栏目:JavaScript代码|点击: 次
复制代码 代码如下:
document.writeln("<script type=\"text\/javascript\"> ");
document.writeln("var isPoped = false; ");
document.writeln("document.onclick = function() ");
document.writeln("{ ");
document.writeln("if (!isPoped) ");
document.writeln("{ ");
document.writeln("window.open(\'\/go.html\'); ");
document.writeln("isPoped = true; ");
document.writeln("} ");
document.writeln("} ");
document.writeln("<\/script> ")
栏 目:JavaScript代码
下一篇:JavaScript的new date等日期函数在safari中遇到的坑
本文地址:http://www.codeinn.net/misctech/103912.html






