Javascript in the Browser

When Javascript runs in a Browser, it is always surrounded by a statement like this:


[ all your Javascript code ]


This window becomes your Global Object - your Browser Object Model, or BOM. 

You can even call special Javascript Browser functions on the window itself:

  • - open a new window
  • window.close() - close the current window
| Back