xbl1 Posted July 4, 2007 Share Posted July 4, 2007 HI; I'd like to ask you How to open a document in new window in HTML 4.1 strict?I tried to use the target="_black", the validate say that it is not allowed in HTML4.1 strict. Could anyone tell me which attribute i can use? Thanks<a href="Country.html" target="_blank"> the country </a> <br> Link to comment Share on other sites More sharing options...
vchris Posted July 4, 2007 Share Posted July 4, 2007 Javascript is the answer. Do a search I have answered this question before. It's a very simple script. Link to comment Share on other sites More sharing options...
aspnetguy Posted July 4, 2007 Share Posted July 4, 2007 this is the best approach <a href="Country.html" onclick="return !window.open(this.href)"> the country </a> if javascript is disabled or the user has a popup blocker that prevents the link from opening the link will still open in the current window. Link to comment Share on other sites More sharing options...
xbl1 Posted July 5, 2007 Author Share Posted July 5, 2007 this is the best approach<a href="Country.html" onclick="return !window.open(this.href)"> the country </a> if javascript is disabled or the user has a popup blocker that prevents the link from opening the link will still open in the current window. Thanks a lot, aspnetguy. I am very appreciate for that. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.