Javascript jump page and new window

Source: Internet
Author: User
1. directly jump to the window in the original form. location. href & quot; the page you want to jump to & quot; 2. Open the page in the new form and use: window. open (& amp; #39; the page you want to jump to & amp; #39;); window. history. back (-1); back to the previous page. 3. Usage: & lt; INPUTname

 

1. directly jump to the original form using

Window. location. href = "the page you want to jump ";

2. Open the page in the new form:

Window. open ('page you want to jump ');

 

Window. history. back (-1); return to the previous page

 

 

3. Usage

License:

Link Type: return to the previous page

"> Back to previous page

Direct jump:

Script window. location. href = 'Connection address'; script

Open a new window:

123

 

 

 

SCRIPT

 

SCRIPT

 

After running the script, page.html will be opened in the newwindow of the new form, with a width of 100, a height of 400, 0 pixels from the screen top, 0 pixels left, no work

 

Bar, no menu bar, no scroll bar, no size adjustment, no address bar, no status bar. Please compare.

In the preceding example, several common parameters are involved. In addition, there are many other parameters. For details, see section 4.

 

Iv. Parameters

Here, yes/no can also use 1/0; pixel value is a specific value, in pixels.

 

Parameter | value range | description

 

AlwaysLowered | yes/no | specifies that the window is hidden behind all windows

AlwaysRaised | yes/no | specify that the window is suspended above all windows

Depended | yes/no | whether to close the parent window at the same time

Directories | yes/no | whether the directory bar of Nav2 and 3 is visible

Height | pixel value | window height

Hotkeys | yes/no | set the Security Exit hotkey in the window without menu bar

InnerHeight | pixel value | pixel height of the document in the window

InnerWidth | pixel value | pixel width of the document in the window

Location | yes/no | whether the location bar is visible

Menubar | yes/no | whether the menu bar is visible

OuterHeight | pixel value | set the pixel height of the window (including the decorative border)

OuterWidth | pixel value | set the pixel width of the window (including the decorative border)

Resizable | yes/no | whether the window size can be adjusted

ScreenX | pixel value | pixel length between the window and the left boundary of the screen

ScreenY | pixel value | pixel length between the window and the upper boundary of the screen

Scrollbars | yes/no | whether the window has a scroll bar

Titlebar | yes/no | whether the title bar of the window is visible

Toolbar | yes/no | whether the toolbar of the window is visible

Width | pixel value | pixel Width of the window

Z-look | yes/no | whether the window floated above other windows after being activated

 

========================================================== ==================

 

[1. The most basic pop-up window Code]

In fact, the code is very simple:

 

 

 

 

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.