instructional systems
Index:
[Session11] JavaScript 1 (Interactive page)
1 Chapter1
2 Chapter2
3 Chapter3
--3.3 Application of Handling
4 Chapter4
5 Chapter5
Your Location: Home Page  >  [3] Interactive web pages using JavaScript (on condition)  >  [Session11] JavaScript 1 (Interactive page)  >  Chapter5  >  5.1 Samples of JavaScript
Samples of JavaScript

Using the Sample Set of JavaScript

Links to pages showing JavaScript samples and how to use them are listed below. Use them when you create the assignments.

To use the samples, follow the procedure below.

  1. Copy & paste the definition of the necessary JavaScript handling (the block starting from function) to myscript.js.
    If there is no handling definitions starting from function, then follow as shown below.
    1. First copy & paste the entire JavaScript program to myscript.js.
    2. Then enclose the entirety of what has been pasted by “{ }”, and add “function function_name()” to immediately before the “{“ or at the line above it. Write the name of the handling that you select to the portion function_name, in single-byte characters.
    This should name the handling.
  2. Add the description to use above handling to an HTML file.
  3. Confirm the operation by Web browser.

JavaScript sample set

Copyright (C) Kenichi Sugitani 2005, All Rights Reserved