js下弹出窗口的变通
更新时间:2007年04月18日 00:00:00 作者:
所以用的代码是:
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
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
相关文章
document.documentElement的一些使用技巧
documentElement 属性可返回文档的根节点,接下来为大家详细介绍下document.documentElement的一些使用技巧,感兴趣的朋友可以参考下哈2013-04-04


最新评论