JavaScript
  Home arrow JavaScript arrow Questions and Answers on Chrys`s Approach ...
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? 
JAVASCRIPT

Questions and Answers on Chrys`s Approach to Active Client Pages
By: Chrysanthus Forcha
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 1
    2009-09-11

    Table of Contents:
  • Questions and Answers on Chrys`s Approach to Active Client Pages
  • Can you open a window, which will open another window, which will open another window and so on?
  • Can you access Values and Contents in the Parent Window?
  • Can I make my remarks now?
  • How do you really give a window a name?

  • 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


    Questions and Answers on Chrys`s Approach to Active Client Pages


    (Page 1 of 5 )

    In this eleventh part of a twelve-part series on active client pages (ACP), I give you more factors that gave rise to the Window Phase of Chrys’s Approach. We continue with the questions and answers more or less from where we left off last time.

    How do I close a window?

    You close a window using the window close() method. Let us look at it.

    HTML DOM close() Method

    Definition and Usage

    The close() method is used to close the current window.

    Syntax

    window.close()

    Example

    The following example closes the new window:

    <html>

    <head>

    <script type="text/javascript">

    function closeWin()

    {

    myWindow.close()

    }

    </script>

    </head>

    <body><script type="text/javascript">

    myWindow=window.open('','','width=200,height=100')

    myWindow.document.write("This is 'myWindow'")

    </script>

    <input type="button" value="Close 'myWindow'" onclick="closeWin()" />

    </body>

    </html>

    From my experience, even though the specification says that the close() method is used for the current window, if you are at a window, and you have a reference to some other window, you can use the reference to close the window as follows:

    windowRef.close();

    More JavaScript Articles
    More By Chrysanthus Forcha


     

    JAVASCRIPT ARTICLES

    - Comparing Fields and Customizing Error Messa...
    - Checking Numbers and File Extensions with jQ...
    - Validating Digits and Dates with jQuery`s Va...
    - Validating Ranges, Emails, and URLs with jQu...
    - More Uses for the jQuery Tooltip Plug-in`s b...
    - Building Image-Based Tooltips with the jQuer...
    - Using the jQuery Tooltip Plug-in`s bodyHandl...
    - Using Rangelength, Min and Max with the Vali...
    - Using Minlength and Maxlength with the Valid...
    - Modifying Tooltip Coordinates with the jQuer...
    - Applying a Fade Out Effect with the jQuery T...
    - Tracking Mouse Movements with the jQuery Too...
    - Checking Online Forms with the Validator jQu...
    - Nested JavaScript Functions as Objects
    - The jQuery Tooltip Plug-in







    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 2 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek