PrintedExistence[dot]com



Web Design Help



JukeBox



Sponsor Ads





Popups (Html / Javascript)




New Window with Html


You can use plain html to make a link that opens in a new window:




New Window / Popup with Javascript


Javascript gives you more control over the windows size and features:


With the Javascript code you have 3 sets of ' marks after window.open. The first is always the link to the page you want to open. If you leave this one out it'll just open a blank page. The second is the name of the window, and can be left blank, but NOT missed out if you are going to set params. The third is params or features, and this can be left out altogether (as above) if you don't want to specify any. If you do, they all go between those third set of marks, seperated by commas. The features you can specify are:


  • width & height   (In pixels, eg. width=100)

  • fullscreen

  • menubar / menubar=no
    (display or hide the file/edit bit at the top of the screen)

  • toolbar / toolbar=no
    (display or hide the back/ forward buttons etc at the top of the screen)

  • location / location=no
    (display or hide the box where you type page urls at the top of the screen)

  • status / status=no
    (display / hide the bar at the bottom of the window that contains link urls on mouseover)

  • scrollbars / scrollbars=no

  • resizable / resizable=no
    (including this will let your users grab the corner of your window and resize it)


If you specify a width and/or height, all the toolbars will disappear, eg:



For a fullscreen window, just specify that as a param:




<< back to code snippets

All content copyright PrintedExistence.com 2006 - 2007 ©
PrintedExistence.com is a subsidiary of StephensPhoto™

W3c Valid XHTML  W3c Valid HTML  W3c Valid Css  Get Macromedia Flash Player  Viewable With Any Browser  PHP Powered  MySql Powered
preloading...