window.open()用法
[url]http://www.w3schools.com/HTMLDOM/met_win_open.asp[/url]
* _blank - URL is loaded into a new window. This is default
* _parent - URL is loaded into the parent frame
* _self - URL replaces the current page
* _top - URL replaces any framesets that may be loaded
* name - The name of the window
问题描述:
[url]http://forums.digitalpoint.com/showthread.php?t=762852[/url]
//如果是用_blank,则在有的版本的ie6中,不会在新窗口中打开,只会在原来的窗口上打开。
window.open('a.html','_blank',height=100,width=200,'');
为此,只需要将'_blank' 改为 '',中间不能有空格。这样就解决了这个问题。
这个问题困扰了偶2个多小时,才找到这个解决办法!
希望遇到此问题的朋友能根据这个解决问题。
[url]http://www.w3schools.com/HTMLDOM/met_win_open.asp[/url]
* _blank - URL is loaded into a new window. This is default
* _parent - URL is loaded into the parent frame
* _self - URL replaces the current page
* _top - URL replaces any framesets that may be loaded
* name - The name of the window
问题描述:
[url]http://forums.digitalpoint.com/showthread.php?t=762852[/url]
//如果是用_blank,则在有的版本的ie6中,不会在新窗口中打开,只会在原来的窗口上打开。
window.open('a.html','_blank',height=100,width=200,'');
为此,只需要将'_blank' 改为 '',中间不能有空格。这样就解决了这个问题。
这个问题困扰了偶2个多小时,才找到这个解决办法!
希望遇到此问题的朋友能根据这个解决问题。