Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    166
    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:
    166
    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>
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. ljwhite

    ljwhite Well-Known Member

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

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice