Forum Home
Press F1
 
Thread ID: 103719 2009-10-04 03:46:00 HTML: Opening a link in a new page/tab Billy (6701) Press F1
Post ID Timestamp Content User
816753 2009-10-04 03:46:00 Hi
I am using a DOCTYPE of <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4 . 01//EN" . (Work requirement!)

What do I use to force a link to open in a new page with this DOCTYPE? I tried <a href="my url" target="_blank">click here</a> but it seems that the target attribute is not valid with this DOCTYPE

(EG see . w3schools . com/TAGS/tag_a . asp" target="_blank">www . w3schools . com OR when I validate using http://validator . w3 . org/) .

So what do I use instead of
<a href="my url" target="_blank">click here</a>?

Thanks in advance .
Billy (6701)
816754 2009-10-04 03:49:00 It might not be valid but does it work? Thats all ive ever used without any problems hueybot3000 (3646)
816755 2009-10-04 04:23:00 Hi Billy,

This always works for me:

<a target="mm_window" href="community.webshots.com

Good Luck

David
minizv (15269)
816756 2009-10-04 04:25:00 You could try:
<a href="WEBSITE HERE" target="_blank">HTML Help</a>

Oops, Just missread Original Post. Looks like i'm wrong, Sorry.
josh2200 (6681)
816757 2009-10-04 04:26:00 It might not be valid but does it work? Thats all ive ever used without any problems

I agree - I use that attribute a few times every week, on various types of doctypes sites, and always works.
kahawai chaser (3545)
1