window.open
2013-07-22 18:12
232 查看
1,打开一个新窗口,并控制其样式
2,打开一个新的窗口
window.open(url,"_blank");
3,打开一个新窗口,并覆盖上次打开的
window.open(url,'newwindow');
4,在本窗口打开
window.open(url,'_self');
<html> <head> <script type="text/javascript"> function open_win() { window.open("http://www.w3school.com.cn","_blank","toolbar=yes, location=yes, directories=no, status=no, menubar=yes, scrollbars=yes, resizable=no, copyhistory=yes, width=400, height=400") } </script> </head> <body> <form> <input type="button" value="打开窗口" onclick="open_win()"> </form> </body> </html>
2,打开一个新的窗口
window.open(url,"_blank");
3,打开一个新窗口,并覆盖上次打开的
window.open(url,'newwindow');
4,在本窗口打开
window.open(url,'_self');
相关文章推荐
- window.open打开子窗口后关闭父窗口实现
- location.href、parent.location.href、top.location.href、 window.open实现页面跳转
- window.open()方法参数详解
- window下open的使用
- window.open() 方法
- Window.open
- 主题:window窗体对象open()和showModalDialog()用法
- HTML DOM window.open() 方法
- js监听 window.open 关闭事件
- 各浏览器对 window.open() 的窗口特征 sFeatures 参数支持程度存在差异
- JavaScript打开窗口函数(Window.Open)使用详解
- window.open 第二个参数取值错误,导致open失效
- window.opener和window.open用法
- window.open()支持环境:
- window.open()的所有参数列表
- 2-5打开新窗口(window.open)
- window对象open方法详解
- window.open
- window.open 子页面刷新父页面
- open Command window here