HTML
  Home arrow HTML arrow Page 2 - 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 - The Main Method to Use


    (Page 2 of 4 )

    The HTML DOM has a window object which has properties and methods to control and open windows. One of these methods has the following syntax:


    open(URL,name,specs,replace)


    All four parameters of this function are optional. This is the main function (method) we shall use in this series.

    If, into a JavaScript, you type without arguments,


    window.open()


    a new window will open. Because there are no arguments, the opened window comes with a title bar, a menu bar, a tool bar, an address bar and a links bar. You should see “about:blank” as the title and as the content of the address bar. Dialog boxes usually have only the title bar; they do not have the other bars. Later in this series you will see how we get rid of these bars.

    The URL Parameter

    If you want the new window to be a web page from some server, then type the URL in quotes at this position.

    The name Parameter

    This is the name of the window. It is the target attribute. From a different dialog box, you can send the web page of some web site to a particular dialog box (window) on your screen; you need this parameter for that. We shall see how to do that.

    The specs Parameter

    This parameter takes the arguments for some of the presentation (size, position, etc.) aspects of the window. It is a comma-separated list of items. We shall cover this in great detail later. 

    The replace Parameter

    This is used to decide whether a new window (dialog box) is opened as a new browser window, or if it will fit in the same browser window. We shall not use this much. However, I will comment on this at the end of the series.

    More HTML Articles
    More By Chrysanthus Forcha


     

    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
    For more Enterprise Application Development news, visit eWeek