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.
- 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.- First copy & paste the entire JavaScript program to myscript.js.
- 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.
- Add the description to use above handling to an HTML file.
- Confirm the operation by Web browser.
JavaScript sample set
- JavaScript basic samples (broken link)
http://www.sumnet.ne.jp/domp/jsbs/ - Easy JavaScript, understandable to 5th and 6th graders (broken link)
http://www.sky.sannet.ne.jp/masapine/java_top.html - Usano JavaScript Course
http://www.usagi-js.com/ - Tohohono JavaScript Reference
http://bi.stud.kumamoto-u.ac.jp/tohoho/js/index.htm (School use only)
http://www.tohoho-web.com/js/index.htm (Originator)