Changing text with innerHTML
Changing text with innerHTML,
<script type="text/javascript">
function changeText(){
document.getElementById('boldStuff').innerHTML = 'Semenit';
}
</script>
<p>Welcome to the <b id='boldStuff'>unknown</b> site</p>
<input type='button' onclick='changeText()' value='Change Text'/>
This entry was posted on Friday, June 4th, 2010 at 8:04 am and is filed under PHP. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.


