Ultimate Web Site Drop Down Menu Forum

Ultimate Web Site Drop Down Menu Forum (http://www.udm4.com/forum/index.php)
-   Javascript (http://www.udm4.com/forum/forumdisplay.php?f=9)
-   -   creating an anchor w/createElement (http://www.udm4.com/forum/showthread.php?t=342)

bcarl314 08-19-2007 06:51 PM

creating an anchor w/createElement
 
How do I assign a value to the "text" of an anchor?I want to do this, but it seems wrong. var myAnchor= document.createElement("a"); myAnchor.setAttribute("href", "theHref"); myAnchor.setAttribute("text", "Click Here");Is it called something besides "text"????


All times are GMT. The time now is 09:28 PM.

Powered by vBulletin® Version 3.0.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.