Tom743
New Member
- Messages
- 72
- Reaction score
- 0
- Points
- 0
I'm a noob at javascript and I'm trying to get the text "Hi" to appear when I click the link, but its not working. Does anyone know why?
HTML:
<a href="javascript: document.getElementById(text).innerHMTL = 'Hi';">View</a>
<div id="text"></div>