Javascript in the Browser
Javascript

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

with(window){

[ 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:

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

Footerfull