How To Use The HTML SCRIPT Tags In Javascript
how to use the html script tags in javascript
how, to, use, the, html, script, tags, in, javascript
How To Use The HTML SCRIPT Tags In Javascript
Post Description: how to use the html script tags in javascript
POST# 1192
Posted On: Sat Apr 19, 2008 6:28 pm
web hosting
Topic: How To Use The HTML SCRIPT Tags In Javascript
SCRIPT tags are used to tell the browser where some types of scripting language will begin and end in an HTML file. here is the format how you should put your SCRIPT tags in your HTML documents:

FORMAT
<SCRIPT>
Javascript code here
</SCRIPT>


<SCRIPT> - When the browser sees this, it knows this is where the script BEGINS

</SCRIPT> - When the browser sees this, it knows this is where the script ENDS

so as you can see here, there is the opening <SCRIPT> tag, the javascript code and then the closing </SCRIPT> tag. when you use just the baisc opening and closing tags like this many browser will assument the the scripting language to follow will be javascript, but there are some brwoser that need to be told what kind of script it is.

besides telling where a scrpt beings and ends for the browser, SCRIPT tags can also tell the browser which scripting language will be used and define the address for an external javascript file. these aditional fucntions are achieve through the language and src or the source attributes in your code.

so its always a better to tell the browser what kind of script you will be using so from now on you should always use this format when you are toing to start a javascript code:

<SCRIPT language="javascript" type="text/javascript">

here is my example:
<SCRIPT language="javascript" type="text/javascript">
<!--
document.write ("Hello World. This Is A Webune Script Written In Javascript!");
//-->
</SCRIPT>


No Repies
(0) Comments for How To Use The HTML SCRIPT Tags In Javascript

What do you think?

* name:  

* email:  

* Please enter comments:


Receive Replies on my Comments
(An email will be sent to you when someone replies to your comments)

Add image to comments
yes no             upload
     
  1. Putting Javascript In An HTML File
  2. Where Do You Put Javascript Code? HEAD OR BODY?
  3. How To Use The HTML SCRIPT Tags In Javascript
  4. How To Attached External Javascript Scripts
  5. How To Hide Javascript Code From Older Browsers
  6. How To Create Your First Javascript Web Page
  7. How To Insert Javascript Code Into HTML Pages
  8. How To Display Or Show Text On Html Using Javascript Document.write()