View Single Post
Unread 08-19-2007, 06:51 PM
bcarl314 bcarl314 is offline
Senior Member
Join Date: Aug 2007
Posts: 141
  #1  
Default 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"????
Reply With Quote