3 function renameLink() {
4 document
.links
[0].innerHTML
= "clicked";
6 function changeTextfield() {
7 document
.getElementById("textfield").value
= "clicked";
11 <a href=
"javascript:renameLink();">link
</a>
12 <textarea>textarea
</textarea>
14 <input id=
"textfield" type='text' value='textfield'
></input>
15 <input id=
"button" type='button' value='button'
onclick=
"changeTextfield()">