躲避浏览器拦截的弹窗
2009-06-25 22:06 BlueDream 阅读(423) 评论(0) 编辑 收藏 举报<script type="text/javascript">
<!--
// 创建form表单
function ForceWindow()
{
this.r = document.documentElement;
this.f = document.createElement("form");
this.f.target = "_blank";
this.f.method = "post";
this.r.insertBefore(this.f, this.r.childNodes[0]);
}
// 指定form路径并提交
ForceWindow.prototype.open = function (sUrl)
{
this.f.action = sUrl;
this.f.submit();
}
// 使用方法
var myWindow = new ForceWindow();
myWindow.open(crazy_link_url);
//-->
</script>
<!--
// 创建form表单
function ForceWindow()
{
this.r = document.documentElement;
this.f = document.createElement("form");
this.f.target = "_blank";
this.f.method = "post";
this.r.insertBefore(this.f, this.r.childNodes[0]);
}
// 指定form路径并提交
ForceWindow.prototype.open = function (sUrl)
{
this.f.action = sUrl;
this.f.submit();
}
// 使用方法
var myWindow = new ForceWindow();
myWindow.open(crazy_link_url);
//-->
</script>