JavaScript Tutorial

Define JavaScript

JS Arithmetic Exercise

JavaScript Comment

JavaScript Variable

JavaScript Operators

Conditional Statements

Logical Operators

JavaScript Slider

JS Login Form

JS Popup Boxes

JavaScript Loops

JavaScript Arrays

JS Mouse Events

JS Keyboard Events

Styling Elements

External JavaScript

JS Noscript Tag

JS String Functions

JS Math Functions

JS Random

JS Date Functions


JS Assignment

JS Question-Answer

Page Stats

Visitor: 280

External JavaScript

Javascript can also be placed in external files. External JavaScript is useful when you want to apply the same code to many different web pages. Javascript files have an extension .js

Syntax: To apply external javascript in html file.
<script src="myScript.js" type="text/javascript"> </script>