methods
event handlers
例子
example 1. the following example creates a hypertext link to an anchor named javascript_intro.
example 2. the following example creates a hypertext link to an anchor named numbers in the file doc3.htm in the window window2. if window2 does not exist, it is created.
example 3. the following example takes the user back x entries in the history list:
example 4. the following example creates a hypertext link to a url. a set of radio buttons lets the user choose between three urls. the link's onclick event handler sets the url (the link's href property) based on the selected radio button. the link also has an onmouseover event handler that changes the window's status property. as the example shows, you must return true to set the window.status property in the onmouseover event handler.
example 5: links array. the following example opens the netscape home page in the newwindow window. the linkgetter() function uses the links array to display the value of each of its links.