instructional systems
Index:
[Session13]JavaScript 3 (Event detection, Application of multimedia information, Programming tips)
1 Chapter1
2 Chapter2
3 Chapter3
Creating Page Using JavaScript
[The purpose of this section]
At the send of this session, Some helpful information is shown for creating your page using JavaScript.

Overall Page Structure

The general composition of the HTML file containing JavaScript will be as follows.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

<html lang="ja">
<head>
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
 <meta http-equiv="Content-Script-Type" content="text/javascript">
 <tille> title of this page <tille>
 <script type="text/javascript">
  <!--
    function method 1 (and argument if necessary) {
        .
        .
    }
    function method 2 (and argument if necessary) {
        .
        .
    }
        .
        .	
  //-->
 </script>
</head>

<body>

  Normal HTML statement as well as HTML statement containing event handler
</body>
</html>

The JavaScript programs to be defined can also be written in a group at one location of <head> as shown above.



Sample of Web Page Using JavaScript

A sample of Web page using JavaScript was created as shown below, for your reference.


The sample page is here (in Japanese).    (Source of sample page)



Sample Set of Using JavaScript

As shown in Session 11, these are the list of links to the samples for using JavaScript. Please use them for your reference.

■The texts and samples created by Kumamoto University.


■Samples of sample set opened to the Internet
There are many of these kinds, and try to search them by search engines.

  • JavaScript basic samples
    Sample set of JavaScript, arranged by each basic function.
    This may be handy to confirm the basic functions.
    To “JavaScript basicsamples”(in Japanese)

  • Easy JavaScript for 5th and 6th graders
    This is also the sample set for each basic function.
    To “Easy JavaScript for 5th and 6th graders”(in Japanese)

  • Usano JavaScript Course
    This is also the samples of JavaScript for each basic function.
    To “Usano JavaScript Course”(in Japanese)

  • Tohohono JavaScript Reference
    The syntax of JavaScript is described in detail with samples.
    If you have any trouble understanding by other samples, you are recommended to see this.
    To “Tohohono JavaScript Reference”(in Japanese)
Copyright (C) Eri Hayashi, Toshihiro Kita, Ryuuichi Matsuba, Kenichi Sugitani and Hideki Matsuda 2003-2006, All Rights Reserved