Unread 08-19-2007, 07:51 PM
bcarl314 bcarl314 is offline
Senior Member
Join Date: Aug 2007
Posts: 141
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

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

All times are GMT. The time now is 11:55 PM.

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