[thelist] JavaScript: link method

Kid Stevens kstevens89 at comcast.net
Mon Sep 9 16:25:11 CDT 2002


Try target="new_window" instead of _blank.  A compliance change in
the specs that already effected a website I work on with out
degrading backwards too bad.

At 4:06 PM -0500 9/9/02, David.Cantrell at Gunter.AF.mil wrote:
>  >When this chunk is executed within document.write(), it returns <a
>>href=""http://www.yahoo.com/">string</a> in the source code of new page. Is
>>there any way to assign a target attribute in this anchor tag with the help
>link
>>method?
>
>I'm not Javascript guru, but why couldn't you just do this:
>
>	var s = "<a href='http://www.yahoo.com' target='_blank'>string</a>";
>	document.write(s);
>
>-dave
>--
>For unsubscribe and other options, including
>the Tip Harvester and archive of thelist go to:
>http://lists.evolt.org Workers of the Web, evolt !


--
Sincerely,
Kid Stevens Webmaster Dragon Vision Design

"Warning,
Do not meddle in the affairs of Dragons.
They will make you crunchy and eat you with ketchup."
-Unknown Author



More information about the thelist mailing list