Window. open parameter description + click a link window to open a beautiful method

Source: Internet
Author: User
<Script language = "javascript">
<! --
Window. open ('page.html ', 'newwindow', '1970, width = 100, top = 0, left = 0, toolbar = no, menubar = no, scrollbars = no, resizable = no, location = no, status = no ')
// Write a row
-->
</SCRIPT>
<Script language = "javascript"> The js SCRIPT starts;
Window. open command to pop up a new window;
'Page.html 'name of the pop-up window;
'Newwindow' indicates the name of the pop-up window (not the file name). It is optional and can be replaced by null;
100 window height;
Width = 400 window width;
Top = the pixel value between the 0 window and the top of the screen;
Left = 0 the pixel value between the window and the left of the screen;
Toolbar = no indicates whether to display the toolbar. yes indicates display;
Menubar and scrollbars indicate the menu bar and scroll bar.
Resizable = no: whether to change the window size. yes: yes;
Location = no indicates whether the address bar is displayed. yes indicates yes;
Status = no whether to display the information in the status bar (usually the file has been opened), yes is allowed;
</SCRIPT> end of js SCRIPT
------------------------------------------------------------
<Script language = JavaScript>
<! -- Original: Martijn sinsecured (ycrxzyj@163.com) -->
<! -- Web Site: http://www.ycrx.com -->
<! -- Begin
Function expandingWindow (website ){
Var heightspeed = 2; // vertical scrolling speed (higher = slower)
Var widthspeed = 7; // horizontal scrolling speed (higher = slower)
Var leftdist = 0; // distance to left edge of window
Var topdist = 0; // distance to top edge of window
Var winwidth = window. screen. availWidth-leftdist;
Var winheight = window. screen. availHeight-topdist;
Var sizer = window. open ("", "", "left =" + leftdist + ", top =" + topdist + ", width = 1, height = 1, scrollbars = yes, status = yes ");
For (sizeheight = 1; sizeheight <winheight; sizeheight + = heightspeed ){
Sizer. resizeTo ("1", sizeheight );
}
For (sizewidth = 1; sizewidth <winwidth; sizewidth + = widthspeed ){
Sizer. resizeTo (sizewidth, sizeheight );
}
Sizer. location = website;
}
// End -->
</Script>
<A href = "javascript:;" onClick = "expandingWindow('new_page_1a.htm ')" target = "_ blank"> Click </a>

Related Article

E-Commerce Solutions

Leverage the same tools powering the Alibaba Ecosystem

Learn more >

Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

Learn more >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

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.