Warning: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in ..../includes/class_bbcode.php on line 2083
New window
Results 1 to 4 of 4

Thread: New window

  1. #1
    Registered
    Join Date
    Dec 2007
    Posts
    69

    New window

    How do I make it so when a user clicks on a link in my website, it open up in a new window?
    ________
    TV Forum
    Last edited by StuartDykes; 01-26-2011 at 01:42 AM.

  2. #2
    Registered
    Join Date
    Mar 2006
    Posts
    156
    You have to use the Target attribute, like this:
    HTML Code:
    <a href="http://www.websitepublisher.net/" target="_blank">Website Publisher opens in new window</a>

  3. #3
    Is Still Alive! Johnny Gulag's Avatar
    Join Date
    Feb 2006
    Location
    North Texas
    Posts
    242
    Or you can use a little Javascript and keep the HTML valid: http://www.sitepoint.com/article/sta...ompliant-world

  4. #4
    Junior Registered
    Join Date
    Nov 2007
    Posts
    9
    I've found the best was is to use, and keep the HTML valid, use: onclick="window.open(this.href,'newwin'); return false;"
    Without Animal there is no Paridise

Similar Threads

  1. pop up window size
    By agua in forum HTML, CSS, Layout, and Design
    Replies: 1
    Last Post: 06-22-2007, 05:39 AM

Bookmarks

Posting Permissions

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