Home  >  Article  >  Web Front-end  >  Solution to the error of window.open returning object in js_javascript skills

Solution to the error of window.open returning object in js_javascript skills

WBOY
WBOYOriginal
2016-05-16 18:48:141157browse

Solve the error of returning object after window.open

Copy the code The code is as follows:

Just add a void declaration without return parameters in the outer layer of js.

By the way, the parameters of the window.open function are also listed here:

window.open function parameter list
window = object.open([URL ][, name ][, features ][, replace]]]])
URL: the URL address of the new window
name: the name of the new window, which can be Empty
featurse: attribute control string, where various attributes of the window are controlled. The attributes are separated by commas.
fullscreen= { yes/no/1/0 } Whether to full screen, the default is no
channelmode= { yes/no/1/0 } Whether to display the channel bar, the default is no
toolbar= { yes/no/ 1/0 } Whether to display the toolbar, the default is no
location= { yes/no/1/0 } Whether to display the address bar, the default is no
directories = { yes/no/1/0 } Whether to display the turn button , default no
status= { yes/no/1/0 } Whether to display the window status bar, default no
menubar= { yes/no/1/0 } Whether to display the menu, default no
scrollbars= { yes/no/1/0 } Whether to display scroll bars, the default is yes
resizable= { yes/no/1/0 } Whether the window can be resized, the default is no
width=number Window width (pixel unit)
height=number window height (pixel unit)
top=number window distance from the top of the screen (pixel unit)
left=number window distance from the left side of the screen (pixel unit)
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn