XHTML 1.1 has no such attribute target on anchors, well, it works – yes, but it’s not valid.
So, how do we open a link in new window in a valid way?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I don’t think it’s posible (because target=”_blank”. has been depracated) to open a new window using only XHTML but there is a way by adding a bit of javascript.I have been using this method for a while now and it works well.Have a look at this link:
http://www.justin-cook.com/wp/2006/08/30/how-to-make-a-link-open-in-a-new-window-with-xhtml/