Solve the object error returned after window. Open
CopyCode The Code is as follows: <a href = "javascript: void (window. open ('','', 'width = 200, Height = 200 ') "> window. open () </a>
Only add a void on the outer layer of JS without the declaration of return parameters.
By the way, the parameters of the window. OPEN function are also listed here:
window. list of open function parameters
window = object. open ([url] [, name] [, features] [, replace])
URL: URL of the new window
Name: the name of the new window, which can be blank
featurse: attribute control string. The properties of the new window are separated by commas.
fullscreen = {yes/no/1/0} indicates whether to display full screen. The default value is no.
channelmode = {yes/no/1/0} indicates whether to display the channel bar, no by default
toolbar = {yes/no/1/0} indicates whether to display the toolbar. No
location = {yes/no/1/0} indicates whether to display the address bar, no
directories = {yes/no/1/0} indicates whether to display the redirection button. No
Status = {yes/no/1/0} indicates whether to display the window status bar, default no
menubar = {yes/no/1/0} shows the menu, default no
scrollbars = {yes/no/1/0} shows the scroll bar, the default value is yes
resizable = {yes/no/1/0}. Whether the window size can be adjusted. The default value is no
width = Number (pixel unit)
Height = Number window height (pixel unit)
Top = Number window distance from the top of the screen (pixel unit)
left = number the left distance of the window from the screen (in pixels)