Results 1 to 2 of 2

Thread: A Little Javascript Help

Hybrid View

  1. #1
    Join Date
    Apr 2006
    Posts
    76
    Rep Power
    9

    Default A Little Javascript Help

    A couple of my users want to be able to open the ZWC fullscreen without any of the standard browser buttons.

    The following Javascript code does accomplishes this:

    Code:
    <script language="JavaScript"><!--
    
    w=800
    h=600
    
    if (window.screen) {
       w = window.screen.availWidth;
       h = window.screen.availHeight;
    }
    
    win = window.open('http://mail','newwin','width='+w+',height='+h+',top=0,left=0');
    
    //--></script>
    However, when it opens the new window, the old window still remains. How can I close the initial window?

    Thanks!

  2. #2
    Join Date
    Oct 2005
    Location
    Thatcher, AZ
    Posts
    5,606
    Rep Power
    21

    Default

    Does the window open automatically, or on click?

    Code:
    onClick="javascript:window.close();
    onWin="javascript:window.close();
    IE doesn't like the parent window being closed, so if you do, you're gonna get a warning.


Similar Threads

  1. Which javascript editor is being used
    By kambeena in forum Developers
    Replies: 5
    Last Post: 08-28-2008, 03:32 PM
  2. zimlet javascript errors IE7
    By danpep in forum Users
    Replies: 8
    Last Post: 08-21-2007, 09:04 PM
  3. JavaScript Modifications
    By m.hammam in forum Developers
    Replies: 5
    Last Post: 06-27-2007, 11:06 AM
  4. Replies: 2
    Last Post: 10-06-2005, 09:43 PM
  5. https and javascript caching
    By ZCSForumTH in forum Installation
    Replies: 5
    Last Post: 10-04-2005, 08:53 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •