Producing Web Page Dialog Boxes - The Basic Dialog Box
(Page 3 of 4 )
Remember that all of the parameters for the open() function are optional. So if you do not want any argument, you can have an empty string in its place. If you do not want any of the arguments, you can type:
window.open(“”,””,””,””)
The new resulting window will have the same characteristics as if you typed
window.open()
That is, the window will have a title bar, a menu bar, a tool bar, an address bar and a links bar. We normally want only the title bar. We shall see how to get rid of these other bars.
Now, if you want to omit parameters in the above method, then you have to follow the guidelines that I am about to detail. If you want to include an argument for the first parameter, then you can omit the other parameters. That is, you can have
window.open(“URL”)
If you want to include an argument for the first and second parameters, then you can omit the next two parameters. In other words, you can have
window.open(“URL”, “NAME”)
If you want to include arguments for the first, second and third parameters, then you can omit the last parameter. That is, you can have
window.open(“URL”, “NAME”, “SPECS”)
If you do not want to follow this order, then you need to have empty strings in place of the arguments you do not want to include. For example if you want only the name, then you should type:
window.open(“”, “NAME”, “”,””)
Next: Removing or Allowing the Bars >>
More HTML Articles
More By Chrysanthus Forcha