1. About.com
  2. Computing & Technology
  3. JavaScript

Global Properties and Methods

Join the Discussion

Questions? Comments?

The following properties and methods have global scope in Javascript. They do not belong to any class or object.

Global Properties

Global Methods

  • decodeURI
  • decodeURIComponent
  • encodeURI

The Window Object

The properties and methods belonging to the window object can be referenced in Javascript without the need to include the object name on the front (eg. window.frames and frames are considered to be equivalent).

Properties

Methods

Events

The above list shows the correct capitalization of the properties and methods. You should use the capitalization as shown when referencing these properties and methods. All variations of the words should be avoided though regardless of capitalization as some browsers ignore capitalization.

©2012 About.com. All rights reserved. 

A part of The New York Times Company.