JAVASCRIPT use HTML - HTML tutorial, XHTML Guide

Change Font Size: / / Directory List

18. Use HTML JAVASCRIPT

18.1. HTML script labels
18.2. HTML noscript tags

JAVASCRIPT client is a scripting language that can help achieve some dynamic HTML functions.

Note: javascript has no relationship with java, is in itself both languages, from the names of almost 10%, mainly due to commercial reasons.

  • Javascript client is a scripting language.
  • Java is the server-side language. (SUN is the company's products.)

Example

Loading a document javascript

  <head> <script Type = "nt22.js" "text/javascript" src => </ script> </ head> 

Example

Nt22.js to direct the content of HTML wrote in the document.

<!--...//--> Markings, in order to avoid the old version of the browser does not support javascript.

  "text/javascript" <head> <script Type => <! - Document. Write ( "nt22 !")//--> </ script> </ head> 

These two methods is the need to, and recommended the use of a method

Learning JAVASCRIPT Guide