Common JavaScript code

Source: Internet
Author: User
    • detailed description of window. Open parameters

for a summary of window. Open parameters (adapted from the parameter book), let's take a look at an example:
[window. Open ("webpage. asp? <% = Var %> ", Derek," Height = 100, width = 100, status = Yes, toolbar = Yes,
menubar = No, location = No "); this statement opens a new window. The page is webpage. ASP. The parameter is Var, the name is Derek, the height is 100, and the width is 100. The status bar and toolbar are displayed, and the menu and address are not displayed. The attribute parameters are summarized as follows:
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.