Title: Target=_BLANK
Last modified: August 18, 2016

---

# Target=_BLANK

 *  [Danny](https://wordpress.org/support/users/danny/)
 * (@danny)
 * [22 years, 4 months ago](https://wordpress.org/support/topic/target_blank/)
 * In my popup comments, i want peoples websites to open in new windows when they
   leave a comment, how can i do this? Thankyou.

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/topic/target_blank/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/target_blank/page/2/?output_format=md)

 *  Thread Starter [Danny](https://wordpress.org/support/users/danny/)
 * (@danny)
 * [22 years, 4 months ago](https://wordpress.org/support/topic/target_blank/#post-34652)
 * bump
 *  [Sushubh](https://wordpress.org/support/users/sushubh/)
 * (@sushubh)
 * [22 years, 4 months ago](https://wordpress.org/support/topic/target_blank/#post-34654)
 * well, u can add base target to _blank since its a popup page… 🙂
 *  [alexkingorg](https://wordpress.org/support/users/alexkingorg/)
 * (@alexkingorg)
 * [22 years, 4 months ago](https://wordpress.org/support/topic/target_blank/#post-34659)
 * I think Matt was saying this is [already the way it works](http://wordpress.org/support/3/2385#post-18)…
   what version are you using that it isn’t working this way?
 *  Thread Starter [Danny](https://wordpress.org/support/users/danny/)
 * (@danny)
 * [22 years, 4 months ago](https://wordpress.org/support/topic/target_blank/#post-34686)
 * im using Word Press 1.0, it installed itself with my cpanel 😛
 *  [trakwebster](https://wordpress.org/support/users/trakwebster/)
 * (@trakwebster)
 * [22 years, 4 months ago](https://wordpress.org/support/topic/target_blank/#post-34694)
 * Well, one idea. In your subject title you have no quotes. The format should have
   quotes, like this: target=”_blank”.
    I don’t know if that’s the problem, but 
   if you don’t have quotes, add them as shown and see if it works.
 *  [willm](https://wordpress.org/support/users/willm/)
 * (@willm)
 * [22 years, 4 months ago](https://wordpress.org/support/topic/target_blank/#post-34696)
 * Either use the base target as Susubh suggested or display your comments inline.
   I recommend the latter. ‘target=”_blank”‘ is deprecated in recent versions of
   XHTML and a lot of people here REALLY don’t like it.
 *  [antifuse](https://wordpress.org/support/users/antifuse/)
 * (@antifuse)
 * [22 years, 4 months ago](https://wordpress.org/support/topic/target_blank/#post-34699)
 * He doesn’t want his comments to popup in a new window, he wants commenter’s websites
   to pop up in a new window… (ie the link for a person’s name in the comment they
   left opens in a new window). Despite Matt’s claims to the contrary, it DOESN’T
   currently work that way, at least not in the Miles release, and not when your
   comments are inline…
 *  [willm](https://wordpress.org/support/users/willm/)
 * (@willm)
 * [22 years, 4 months ago](https://wordpress.org/support/topic/target_blank/#post-34701)
 * I thought the problem was that he doesn’t like the links opening inside the pop-
   up window because it makes a lot of sites hard to read. If you switch to inline
   comments you don’t need to open a new window because the window is already full-
   size.
    I always got the impression that the reason links in pop-up windows open
   inside the same window is because ‘target=”_blank”‘ is deprecated and including
   it would go against the whole philosophy of WordPress. We’ve already had the 
   debate about why opening new windows is wrong. I’m not even sure why pop-up comments
   are supported.
 *  Thread Starter [Danny](https://wordpress.org/support/users/danny/)
 * (@danny)
 * [22 years, 4 months ago](https://wordpress.org/support/topic/target_blank/#post-34764)
 * but when i switch to inline comments, i cant get it to use my template. i have
   tried including the header and footer from my site and that just makes it include
   it twice on my main blog page. i have tried putting the pure html code in but
   that does the same and displays it on the normal blog page.
 *  Anonymous
 * [22 years, 4 months ago](https://wordpress.org/support/topic/target_blank/#post-34811)
 * its ok now, i uninstalled it and reinstalled it in my root directory, its much
   easier 😛
 *  [philor](https://wordpress.org/support/users/philor/)
 * (@philor)
 * [22 years, 4 months ago](https://wordpress.org/support/topic/target_blank/#post-34815)
 * Tiptoe, through the holy war…
    Since wp-comments-popup.php _does_ open a popup(
   sometimes), wouldn’t the purest path that does the least harm to the most people
   be to include the javascript to rewrite rel=”external” links in it? You should
   be able to avoid forcing _blank on people who’ve been cunning enough to avoid
   the popup in the first place by wrapping the script in something like ` if (window.
   opener)`. Someone who control-clicked the popup into a new tab gets to manage
   their own links, someone who has a little popup window doesn’t have to figure
   out how to open links somewhere else that’s big enough to read in.
 *  [willm](https://wordpress.org/support/users/willm/)
 * (@willm)
 * [22 years, 4 months ago](https://wordpress.org/support/topic/target_blank/#post-34823)
 * I don’t like rel=”external”. Either you agree with the W3C that opening links
   in a new window is wrong, or you don’t. Opening new windows with javascript is
   just a way of claiming standards compliance – i.e. your pages still validate –
   while weaseling out of its implications.
 *  [Orbit Juice](https://wordpress.org/support/users/orbitjuice/)
 * (@orbitjuice)
 * [22 years, 4 months ago](https://wordpress.org/support/topic/target_blank/#post-34825)
 * Personally, I would rather have comments/trackbacks open in a new window. And
   dare I say, comments and so forth opening in a new window is pretty much standard
   for blogware.
 *  [philor](https://wordpress.org/support/users/philor/)
 * (@philor)
 * [22 years, 4 months ago](https://wordpress.org/support/topic/target_blank/#post-34827)
 * Well, the W3C didn’t say that opening links in a new window is wrong, they said
   it was presentational rather than semantic. XHTML is intended to mark up semantics,
   while CSS and Javascript handle presentation. Using a rel value that isn’t defined
   in the rec without specifying a profile is technically wrong, but what Javascript
   and a browser conspire to do with the semantics of an XHTML page is completely
   out of XHTML’s scope.
    And then there’s the other side of the coin, the one that
   involves actual people with actual problems. WP makes it possible to have comments
   in popups by deleting two characters in one file, but keeping those popups from
   being a miserable pain for the average user requires that the site owner find
   a link to an article that explains how to add some Javascript. Given that WP 
   includes the template for the popup, I don’t see why it shouldn’t also include
   the Javascript to make it tolerable.
 *  Anonymous
 * [22 years, 1 month ago](https://wordpress.org/support/topic/target_blank/#post-35080)
 * onclick=”window.open(this.href);return false;”
    just add that 😉

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/topic/target_blank/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/target_blank/page/2/?output_format=md)

The topic ‘Target=_BLANK’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 16 replies
 * 10 participants
 * Last reply from: [eke](https://wordpress.org/support/users/eke/)
 * Last activity: [22 years, 1 month ago](https://wordpress.org/support/topic/target_blank/page/2/#post-35081)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
