[JavaScript]
[Previous page] [Section contents page] [Next page]
Methods

Methods perform some action on or associated with the object. For instance, the document.write method writes information into the current document at the point where the write method is invoked.

Many of the pre-defined objects for JavaScript have methods. Some particularly useful ones are those associated with the string object -- we will look at these on a later page. Here we will look at several especially useful built-in methods for the window object:

  • window.alert
  • window.confirm
  • window.prompt
  • window.open
  • window.setTimeout

[Previous page] [Section contents page] [Next page]