Rate this script:  I Love it  /   I Hate it

change text


Code


<script type="text/javascript">
function changeText(txt){
        document.getElementById('the_text').innerHTML = txt;
}
</script>
<p>Hello <b id='name'>World</b>. </p>
<input type='button' onclick='changeText("Oliver")' value='Change Text'/>
 

 

 
change text scripts | change text snippet | change text example | change text tutorial | change text code