1.

How To Change The Text Of An Element?

Answer»

A script code using them you can CHANGE the text of an HTML element.Now, In example that I have shown below we change the text of the element
Example:
<html&GT;
<body>
<p id="welcome">R4R Welcomes You!</p>
<script TYPE="text/javascript">
document.getElementById("welcome").innerHTML="A new MESSAGE from R4R";
</script>
<p>R4R introduce a new service called VOICEBOX using them you can chat with R4R.</p>
</body>
</html>

 

A script code using them you can change the text of an HTML element.Now, In example that I have shown below we change the text of the element
Example:
<html>
<body>
<p id="welcome">R4R Welcomes You!</p>
<script type="text/javascript">
document.getElementById("welcome").innerHTML="A new message from R4R";
</script>
<p>R4R introduce a new service called VoiceBox using them you can chat with R4R.</p>
</body>
</html>

 



Discussion

No Comment Found