页面导航: 首页网络编程JavaScript应用技巧 → 正文内容

js下弹出窗口的变通

发布:dxy 字体:[增加 减小] 类型:转载
所以用的代码是:
onChange="window.open(this.options[this.selectedIndex].value,'_blank')"
但这样很容易被屏蔽的...有更好的办法吗
可以用变通的方法,
1.页面用<a id="aa" target=_blank></a>
2.document.getElementById('aa').href=this.options[this.selectedIndex].value;
3.执行document.getElementById('aa').click
百度中搜索更多的关于js下弹出窗口的变通内容,或者用Google搜索相关更多
浏览次数:载入中... 打印本文关闭本文返回首页

文章评论

共有 位脚本之家网友发表了评论我来说两句

同 类 文 章
最 近 更 新
热 点 排 行