View Full Version : Where do I place _blank in HTML?
freecybermag
21st December 2005, 12:39
Hi all
If I place an affiliate HTML code on my web page, can anyone tell me where I can place "_blank" in the html so that it opens in a new window?
Cheers
Chris
mattk
21st December 2005, 12:43
Click here (SiteYouWantToLinkTo.html)
Coding Monkey
21st December 2005, 12:47
Just to be pedantic, target is no longer valid in XHTML. It still works, but just something to be aware of.
mattk
21st December 2005, 13:30
Meanwhile, in the real world...
Eagle
21st December 2005, 13:37
What should be used instead, Tom? :)
Mark
freecybermag
21st December 2005, 14:41
Thanks for the advice.
Still a lit bit stuck though. Can you show me maybe in red font where to place it in the code below.
http://www.awin1.com/show.php?linkid=35984&mid=736&gid=25058&aid=58955 (http://www.awin1.com/awclick.php?linkid=35984&mid=736&gid=25058&id=58955)
Cheers all
Chris
creospace
21st December 2005, 14:44
http://www.awin1.com/show.php?linkid=35984&mid=736&gid=25058&aid=58955 (http://www.awin1.com/awclick.php?linkid=35984&mid=736&gid=25058&id=58955)
Only strict xhtml doesnt like target, transitional it's still ok.
Gary
Coding Monkey
21st December 2005, 14:46
You'd use JavaScript, Eagle. WC3 deprecated the use of target for XHTML, and it caused a rather big worry over how to open pages in new windows. Admittedly, you can turn off JavaScript, so you can't say it's perfect.
What a great page! (mypage.html)
Robert
21st December 2005, 14:46
whats the correct xhtml compliant way of doing it?
creospace
21st December 2005, 14:52
depends as I've said compliant at transitional level is ok , at a strict level then see above but like mac says people can turn off java.
*at the risk of starting a whole compliancy argument.
Transitional is good for what your doing cybermag.
Coding Monkey
21st December 2005, 14:55
It also annoys me cos with _blank I can still open it in a new tab in Safari, but with the XHTML 1.0/1.1 Strict version, regardless of what I try, it opens in a new window. Such is life.
freecybermag
21st December 2005, 15:03
Hey guys
I have it working now.
Cheers to all and Creospace thanks for your prompt reply. I really appreciate it. :D
Chris