4. History of JavaScript
In 1995, the programming language
Java that developed by
SunMicrosystems got a lot of attention at
the time and Netscape and
SunMicrosystems had business tie-ups.
For that reason Netscape named
JavaScript.
5. How to prepare JavaScript
• JavaScript is a programming
language for web pages.
6. How to prepare JavaScript
• JavaScript functions can be
written to work with HTML
FORM elements.
7. How to prepare JavaScript
~ Case write inside HTML ~
• Use <script> tag for Writing
JavaScript inside HTML.
8. How to prepare JavaScript
~ Case reference to an external file ~
• We need to write our file with a
text editor.
9. How to prepare JavaScript
~ Case reference to an external file ~
• When saving a text file, make
the extension “.js” .
10. How to prepare JavaScript
~ Case reference to an external file ~
• To reference to an external file,
insert a link in the HTML
<head></head>
11. How to write JavaScript
~ Case write inside HTML ~
• The instruction of JavaScript is
written inside <script></script>
• Semicolon is attached at the
end of the instruction.
12. How to write JavaScript
~ Case reference to an external file ~
• The instruction of JavaScript is
written inside text file.
• Semicolon is attached at the
end of the instruction.
13. How to run
• JavaScript can be run in the
browser.
• So we use the browser.