Title: javascript links with seperate windows
Last modified: August 18, 2016

---

# javascript links with seperate windows

 *  [craigtupper](https://wordpress.org/support/users/craigtupper/)
 * (@craigtupper)
 * [20 years, 9 months ago](https://wordpress.org/support/topic/javascript-links-with-seperate-windows/)
 * basically I’m new to javascript and trying to get the links in a seperate window.
   Any information would be greatly appreciated…
    I’m not quite sure where to start.

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Class](https://wordpress.org/support/users/class/)
 * (@class)
 * [20 years, 9 months ago](https://wordpress.org/support/topic/javascript-links-with-seperate-windows/#post-243585)
 * When you are saying ‘links in a seperate window’, do you mean that the links 
   should open in a new window?
    If so, you don’t need to use JS, use something 
   like [a href=”url” target=”_blank”]link[/a]
 *  [eridan](https://wordpress.org/support/users/eridan/)
 * (@eridan)
 * [20 years, 9 months ago](https://wordpress.org/support/topic/javascript-links-with-seperate-windows/#post-243586)
 * target _blank isn’t allowed in XHTML strict, so I’d say java script is a better
   alternative (if you must open links in a new window)
 * A quick search at google gave me this, which I think is what you’re looking for.
   
   [http://weblogtoolscollection.com/archives/2004/01/02/targetblank-xhtml-10-strict-conversion/](http://weblogtoolscollection.com/archives/2004/01/02/targetblank-xhtml-10-strict-conversion/)
 *  [Class](https://wordpress.org/support/users/class/)
 * (@class)
 * [20 years, 9 months ago](https://wordpress.org/support/topic/javascript-links-with-seperate-windows/#post-243587)
 * I’d rather not be XHTML compliant than rely on visitors having JS on. That’s 
   my opinion anyway 🙂

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘javascript links with seperate windows’ is closed to new replies.

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 3 replies
 * 3 participants
 * Last reply from: [Class](https://wordpress.org/support/users/class/)
 * Last activity: [20 years, 9 months ago](https://wordpress.org/support/topic/javascript-links-with-seperate-windows/#post-243587)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
