When using window.open under IE9, you need to note that the name parameter value cannot have "-" appear, otherwise a script error will occur. There is no problem with IE9 and version testing.
window.open(URL, name,specs,replace)
| parameter | illustrate |
|---|
| URL | Optional. Opens the URL of the specified page. If no URL is specified, open a new blank window |
| name | Optional. Specifies the target property or the name of the window. The following values are supported:- _blank - URL loads into a new window. This is the default
- _parent - URL loading to parent framework
- _self - URL replaces the current page
- _top - URL replaces any loadable frame set
- name - window name
|
| specs | Optional. A comma-separated list of items. The following values are supported:| channelmode=yes|no|1|0 | Whether to display window in theater mode. The default is not. IE browser only | | directories=yes|no|1|0 | Whether to add a directory button. The default is yes. IE browser only | | fullscreen=yes|no|1|0 | Whether the browser displays full screen mode. The default is not. In full screen mode, window must also be in theater mode. IE browser only | | height=pixels | The height of the window. Minimum value is 100 | | left=pixels | The left position of this window | | location=yes|no|1|0 | Whether to display the address field. The default value is yes | | menubar=yes|no|1|0 | Whether to display the menu bar. The default value is yes | | Resizable=yes|no|1|0 | Is the window size resizable? The default value is yes | | scrollbars=yes|no|1|0 | Whether to display scrollbars. The default value is yes | | status=yes|no|1|0 | Whether to add a status bar. The default value is yes | | titlebar=yes|no|1|0 | Whether to display the title bar. Ignored unless an HTML application is called or a trusted dialog box is called. The default value is yes | | toolbar=yes|no|1|0 | Whether to display the browser toolbar. The default value is yes | | top=pixels | Location at the top of the window. IE browser only | | width=pixels | The window's width. Minimum value is 100 |
|
| replace | Optional.Specifies whether the URL loaded into the window creates a new entry in the window's browsing history or replaces the current entry in the browsing history. The following values are supported:- true - URL Replaces the current entry in the browsing history.
- false - URL Creates a new entry in the browsing history.
|
The parameters and precautions for window.open in the above article js are all the content shared by the editor. I hope it can give you a reference and I hope you can support Wulin.com more.