5 function changeText(id
, newText
) {
6 var node
= document
.getElementById(id
);
7 node
.childNodes
[0].nodeValue
= newText
;
11 <meta name='viewport' content='width=device-width'
/>
20 <button type=
"button" id=
"tap_button" onclick=
"changeText('tap_button', 'updatedValue')" style=
"width:100px;height:100px">oldValue
</button>