[thelist] JavaScript: link method

Syed Zeeshan Haider szh at softhome.net
Mon Sep 9 16:24:00 CDT 2002


From: <David.Cantrell at Gunter.AF.mil>
To: <thelist at lists.evolt.org>
Sent: September 10, 2002, Tuesday 2:06 AM
Subject: RE: [thelist] JavaScript: 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);

I know this method but my situation is a little complex. I have a value in some
unknown array. And I have to display it as a link if that array contains that
value.

Thanks,
Syed Zeeshan Haider.
http://syedzeeshanhaider.faithweb.com/




More information about the thelist mailing list