PDA

View Full Version : creating an anchor w/createElement


bcarl314
08-19-2007, 06:51 PM
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"????