Friday, May 17, 2024
 Popular · Latest · Hot · Upcoming
58
rated 0 times [  60] [ 2]  / answers: 1 / hits: 37902  / 14 Years ago, mon, august 16, 2010, 12:00:00

How do I set the text of an anchor tag in javascript? This does not seem to work. I'm using firefox.



var link = document.createElement(a);
link.innerHtml = Remove;

More From » html

 Answers
16

It is innerHTML. JavaScript is case sensitive.


[#95896] Friday, August 13, 2010, 14 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
mira

Total Points: 460
Total Questions: 108
Total Answers: 99

Location: American Samoa
Member since Fri, Aug 26, 2022
2 Years ago
mira questions
;