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.