Results 1 to 4 of 4

Thread: Window.Close - Problem

  1. #1

    Thread Starter
    Hyperactive Member Stiletto's Avatar
    Join Date
    Aug 2002
    Location
    Jerusalem, Israel
    Posts
    287

    Window.Close - Problem

    Sups.
    I got a pop up window with a link says "Close This Window"
    I would it to close that popup window when the user clicks the link.
    Ive tried OnClick="Window.close()" but it aint workin..
    How can i do that? I know its simple..just cant remember
    tnx

  2. #2
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    This works fine for me:

    Code:
    <a href="#" onclick="window.close();">close this window</a>
    What browser are you testing in?
    My evil laugh has a squeak in it.

    kristopherwilson.com

  3. #3
    Frenzied Member Rick Bull's Avatar
    Join Date
    Apr 2002
    Location
    England
    Posts
    1,444
    Yeah just do what the Hobo says. It's probably because you have the case wrong, Window is different from window.

  4. #4
    Hyperactive Member
    Join Date
    May 2000
    Location
    Kalix, Norrbotten, SWEDEN
    Posts
    343
    OnClick="Window.close()"
    Change this to:

    OnClick="window.close();"

    Small "w" in window...

    /Smirre
    Visual Basic
    C, C++
    Java
    Access
    SQL Server

    MCP, MCSD

Posting Permissions

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



Click Here to Expand Forum to Full Width