How to use the open method?

Are you preparing for IT certification? With practice questions, study notes, interactive quizzes, tips and technical articles, uCertify PrepKits ensure that you get a solid grasp of core technical concepts to ace your certification exam in first attempt.

How to use the open method?

Rating:

The open method belongs to the window object. This method is used to open a new window from an existing window.

The syntax of using the open method is as follows:

window.open("URL", "windowname", "windowfeatures")

The open method can be used as follows:

  • To open a window with a URL and a window name


  • window.open("http://www.yahoo.com","My_window")

  • To open a window without a URL, the first argument should be left as an empty string. To open a window with an empty window name, the second argument should be left as an empty string.


  • window.open("","")

  • To open a window with a menubar


  • window.open("","","menubar=1")

  • To open a window with a toolbar


  • window.open("","","toolbar=1")

  • To open a window with an address bar


  • window.open("","","location=1")

  • To open a window with a statusbar


  • window.open("","","status=1")

  • To make the window resizable


  • window.open("","","resizable=1")

  • To set the width and height of the window


  • window.open("","","width=100 height=100")

  • Note: Two or more window features can be set by separating each of them with a comma or space.


  • window.open("","","menubar=1 toolbar=1")


Rating:



Other articles

Click here to Article home

 
uCertify.com | Our Company | Articles | Privacy | Security | Contact Us | News and Press Release | uCertify India
MCSE: MCSA, MCTS, MCITP    JAVA Certification: SCJP, SCWCD Cisco Certification: CCNA, CCENT, A+, Network+, Security+
Oracle Certification: OCP 9i, OCP 10g, OCA 9i, OCA 10g CIW foundation    EC-212-32    CISSP    Photoshop ACE    Adobe Flash ACE
© 2008 uCertify.com. All rights reserved. All trademarks are the property of their respective owners.