Attributes

  •  Let's add some of attributes to the above script to control the size of the window, and show: toolbar, scrollbars etc. The syntax to add attributes is:
    open("URL","name","attributes")
  • Here is the complete list of attributes you can add:
    • width
    • height
    • toolbar
    • location
    • directories
    • status
    • scrollbars
    • resizable
    • menubar
  • For example:
    <form>
    <input type="button" value="Click here to see"
    onclick="window.open('page2.htm','win1','width=200,height=200,menubar')">
    </form>

0 comments :

Post a Comment

> Related Posts with Thumbnails
 

Copyright © 2012. GS dot net - All Rights Reserved - Design by BTDesigner - Proudly powered by Blogger