- Forums
- Javascipt
- How To Display Or Show Text On Html Using Javascript Document.write()
This Page Contains information about How To Display Or Show Text On Html Using Javascript Document.write() By web hosting in category Javascipt with 3 Replies. [2164], Last Updated: Mon Jun 24, 2024
web hosting
Sat Apr 19, 2008
3 Comments
621 Visits
as a php programmer i know that to display information on the screen i can use echo or print
but since i am new to javascript this is how you can show or display the text on the browser in your web page with javascript
<SCRIPT language="javascript" type="text/javascript">
<!--
document.write ("Wello Webune, Javascript is Cool!");
//-->
</SCRIPT>
so basically to show the output you use the
document.write() function
the above sample code will ouput this on your broswer:
Wello Webune, Javascript is Cool!
https://www.webune.com/forums/how-to-display-or-show-text-on-html-using-javascript-documentwrite.html