How to solve the error returned by window. Open in JS

Source: Internet
Author: User

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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.