• Hi there,
    I am wondering if anyone can tell me how to get the valid x html link to open in a blank window rather than onto its self. I am working on a split blog.

    I used the classic theme but modified it so it doesn’t look much like the classic theme anymore. My clients requested that their blogs be on a split screen.. a “his version” “her version” view. So I did that but now I am not sure how to get the links to open in a different window rather within the split screen.

    I could really use some advice and possible code since I am now brain dead after all of the editing. (I am totally new to the blog editing world).

    Here is the link of the site, keep in mind I am not at all finished with it yet: https://www.themotorcyclelife.com and go to “Our Forum”.

Viewing 5 replies - 1 through 5 (of 5 total)
  • https://www.dynamicdrive.com/forums/showthread.php?t=18307

    I recommend not using the target=”_blank” but rather javascript if you absolutely have to do this.

    You can add in the onclick="this.target='_blank'" to your link to get around the validation problem.

    target=_whatever is quite valid in xhtml transitional. Its strict that it shouldnt be used in.

    And I dont think thats what he wasactually asking, I believe he just wants to know how to get the ACTUAL link to the validator to open in a new window.

    usholmes, right now, for instance, the link on the right to the validator is as follows:

    <a href="https://validator.w3.org/check/referer" title="This page validates as XHTML 1.0 Transitional">Valid <abbr title="eXtensible HyperText Markup Language">XHTML</abbr></a>

    you need this:

    <a target="_blank" href="https://validator.w3.org/check/referer" title="This page validates as XHTML 1.0 Transitional">Valid <abbr title="eXtensible HyperText Markup Language">XHTML</abbr></a>

    “target=_whatever is quite valid in xhtml transitional. Its strict that it shouldnt be used in.”

    That’s true. But it’s still depreciated which means you really should be thinking hard about why you want to keep doing it.

    It’s a bit like going into McDonalds three times a day for a crapburger that’s about to be discontinued. What’s the point? It’s about to disappear so just live with it.

    pizdin_dim,

    I answered the question in 2 ways. the way the first repliers “read” the question and the way I read the question.

    The first 2 replies seemed to be addressing whether or not there was a way to open a link in a new window, and still have valid xhtml.

    There is. They provided one way – I provided another.

    What any particular person uses is up to them, and honestly, if someone wants a crapburger, who cares if its going to be discontinued. Today its there, so live it up.

    Additionally, on a personal note, I rather doubt that something being deprecated is really going to cause me much sleep loss or thought beyond this thread. I use what I want to accomplish what I want.

    To each their own.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to get valid x html to open in a new blank window’ is closed to new replies.