- Forums
- Javascipt
- How To Create Your First Javascript Web Page
This Page Contains information about How To Create Your First Javascript Web Page By web hosting in category Javascipt with 0 Replies. [2162], Last Updated: Mon Jun 24, 2024
web hosting
Sat Apr 19, 2008
0 Comments
462 Visits
creating your first script. now that you know how to use the HTML SCRIPT tags to tell broswer about the javascript in a document, you're ready to learn how to add the actual javascript code between those SCRIPT tags. the first coding example often given to teach any language is one that writes some osero fo text to the default output area. commonly knows as the basic "hello world script.
following that convetion, you first script will write a string of text to a web page
Writing a hello world script in javascript:
step 1. open your text editor (like notepad if you have windows)
step 2. copy and paste the following code into a blank notepad
<HTML>
<BODY>
<SCRIPT Language="Javascript">
<!--
document.write ("Hello World. This Is A Webune Script Written In Javascript!");
//-->
</SCRIPT
</BODY>
</HTML>
step3. save this file as
webune-javascript.html and open it with your web browser. you should see a single like of text that was written with Javascript