HTML
  Home arrow HTML arrow Page 4 - Producing Web Page Dialog Boxes
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
HTML

Producing Web Page Dialog Boxes
By: Chrysanthus Forcha
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 3
    2008-12-29

    Table of Contents:
  • Producing Web Page Dialog Boxes
  • The Main Method to Use
  • The Basic Dialog Box
  • Removing or Allowing the Bars

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Producing Web Page Dialog Boxes - Removing or Allowing the Bars


    (Page 4 of 4 )

    The specs parameter is the one among the four parameters that is used here. Remember that the specs parameter is a comma-separated list of items.

    To remove the menu bar, you should type


    window.open("","","menubar=no","")


    The default specs argument for the menu bar is


    “menubar=yes”


    That is why you have the menu bar when the specs parameter is “”.

    To remove the tool bar, you should type


    window.open("","","toolbar=no","")


    The default specs argument for the tool bar is


    “toolbar=yes”


    That is why you have the tool bar when the specs parameter is “”.


    To remove the address bar you should type


    window.open("","","location=no","")


    The default specs argument for the address bar is


    “location=yes”


    That is why you have the address bar when the specs parameter is “”.


    To remove the title bar you should type


    window.open("","","titlebar=no","")


    The default specs argument for the address bar is


    “titlebar=yes”


    That is why you the title bar when the specs parameter is “”.

    The title bar will always be there by default. I advise you to always allow it.

    The open method cannot be used to remove the Links bar. However, when you remove the menu or tool bar, the Links bar normally goes away as well. So we do not have to worry about the removal of a Links bar.

    To remove the scroll bars you should type


    window.open("","","scrollbars=no","")


    The default specs argument for the scrollbars is


    “scrollbars=yes”


    That is why you have the scrollbars when the specs parameter is “”.


    To remove the status bar you should type


    window.open("","","status=no","")


    The default specs argument for the status bar is


    “status=yes”


    That is why you have the status bar when the specs parameter is “”. In this series we shall not include the status bar, for simplicity. However, I will show you how to use it below, since you may want this in your own project. Also, if there is an error in your script, the status bar would indicate it, but it wouldn't tell you the exact error.

    Specs Arguments for Bars

    So far as bars are concerned, you should have as a minimum the following code:


    window.open("","","menubar=no,toolbar=no","")


    Note how the arguments for the specs parameter are separated by comma(s). IN other words, ‘menubar=no’ is an argument and ‘toolbar=no’ is also an argument. Note how the equal sign is used to choose an option (yes or no).

    The Way Browsers Handle Bars

    With some browsers, if you remove one bar, all the other bars except the title bar are also removed. With such behavior, if you want a particular bar, you have to include it in the specs parameter.

    This is a good place for us to take a break. We will continue in the next part of the series.


    DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware.

     

    HTML ARTICLES

    - Comparing Browser Response to Active Client ...
    - Testing Browser Response to Active Client Pa...
    - Active Client Pages: Completing the Code for...
    - ACP and Browsers: Setting up an Example
    - How Browsers Respond to Active Client Pages
    - Completing a Tree with Active Client Pages
    - HTML Form Verification and ACP
    - Building an ACP Tree
    - Completing an ACP 3D HTML Table Image Gallery
    - Building an ACP 3D HTML Table Image Gallery
    - A Multiple Page Image Gallery with Active Cl...
    - Building an Image Gallery with Active Client...
    - Concluding a Menu for All Browsers
    - A Vertical Menu for All Browsers
    - Downloading Long HTML Pages with ACP







    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 5 Hosted by Hostway
    Stay green...Green IT