Javascript Tutorial Browser Window

Open

  1. Access the window owner through opener property in JavaScript
  2. Add link and open new windows after clicking in HTML and CSS
  3. Create a new window and add form controls in JavaScript
  4. Get window name specified when new windows are created using the Window.open() method in JavaScript
  5. Open a new window in JavaScript
  6. Open new window and set window location in JavaScript
  7. Tell if a pop-up was blocked by checking the return value in JavaScript
  8. Use focus() method places focus on the window in JavaScript

Scroll

  1. Check the visibility of menubar, toolbar, location bar, scrollbar and status bar in JavaScript
  2. Scroll a window in Javascript in JavaScript
  3. Use window.onscroll to add the onscroll event handler in JavaScript

Close

  1. Close a window in JavaScript
  2. Close the newly opened window by calling the close() method in JavaScript

URL

  1. Get the current URL of the document in the window in JavaScript
  2. Set URL location for a window in JavaScript

Location

  1. Get window location on the screen in Javascript in JavaScript
  2. Get window size, width, height in JavaScript

Move

  1. Move a window by 100 pixels in JavaScript
  2. Move a window to a new location in JavaScript
  3. Move window to the left in JavaScript

Resize

  1. Open a window and resize in JavaScript
  2. Resize a window in JavaScript

Frame

  1. Use frames property to access frame instance created with the frame in JavaScript
  2. Use window.frames["frameName"].length in JavaScript