The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to do this?

Discussion in 'General Discussion' started by ljwhite, Apr 6, 2006.

  1. ljwhite

    ljwhite Well-Known Member

    Joined:
    Jun 20, 2005
    Messages:
    363
    Likes Received:
    0
    Trophy Points:
    16
    I want to add a “Close Window” hyperlink to one page. What shall i do? Many thanks in advance.
     
  2. webignition

    webignition Well-Known Member

    Joined:
    Jan 22, 2005
    Messages:
    1,880
    Likes Received:
    0
    Trophy Points:
    36
    This is something you would achieve via JavaScript and not really related at all to cPanel.

    Try Googling "javascript close window" (probably without the quotes) and you should find plenty of examples.

    You should find that something like the following should do the trick (it's just a guess, don't post back if it doesn't work!):

    <a href="javascript:window.close();return false;">Close Window</a>
     
  3. ljwhite

    ljwhite Well-Known Member

    Joined:
    Jun 20, 2005
    Messages:
    363
    Likes Received:
    0
    Trophy Points:
    16
    Thanks for your information.
     

Share This Page