Start 3 of JavaScript programming

Source: Internet
Author: User

Basic Syntax:
Window. Open (pageurl, name, parameters)
Where:
Pageurl is the sub-window path
Name is the sub-window handle
Parameters is window parameters (parameters are separated by commas)
Example:
<Script language = "JavaScript">
<! --
Window. Open ('url') // URL is a URL, such as: http://www.numb1.com (absolute) or index.htm relative)
-->
</SCRIPT>
2. Window Parameters
Where YES/NO can also use 1/0; value is a specific value, in pixels.
Toolbar = Yes, no show Toolbar
Location = Yes, no show URL bar
Directories = Yes, no whether the navigation bar is displayed
Status = Yes, no whether the status bar is displayed
Menubar = Yes, no whether to display the menu
Scrollbars = Yes, no whether to display the scroll bar
Resizable = Yes, no whether the announcement window size can be changed
Copyhistory = Yes, no whether to display the history button
Width = the width of the value announcement window
Height = the height of the value announcement window
Left = value the upper left vertex of the announcement window is 100 pixels left of the screen
Top = the top left vertex of the value announcement window is 100 pixels from the top of the screen
Example:
<Script language = "JavaScript">
<! --
Window. open ("maid", "newwindow", "toolbar = No, location = No, directories = No, status = No, menubar = No, scrollbars = No, resizable = No, copyhistory = No, width = 500, Height = 500, Left = 100, Top = 100 ")
// -->
</SCRIPT>

There are several types of mouse events:
1. Mouseover (move the mouse over)
2. mouseout (move the mouse out)
3. mousemove (move the mouse)
4. mousedown (press the mouse)
5. mouseup)
6. Click (click)
7. dblclick (double-click)
Usually 1 and 2 are used together. When a user moves the mouse over a hyperlink or another element, the Mouseover event will occur, and mouseout will always accompany it, because when the mouse leaves, the mouseout event will occur.
The javascript onchange event is generated when a visitor changes the value or attribute of the current object. It is generally used by the client to respond to the viewer's actions.

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.