Never been to DZone Snippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

About this user

Oliver Haag www.ohcon.de

« Newer Snippets
Older Snippets »
Showing 1-1 of 1 total  RSS 

change text

// javascript to change text

<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'/>
« Newer Snippets
Older Snippets »
Showing 1-1 of 1 total  RSS