Quick introduction to JavaScript

Bsic Java Script Introduction

JavaScript and Java are completely different languages, in concept and in design. JavaScript is a client-side programming language and is the default scripting language in HTML and is used to program the behavior of web pages.

JavaScript can

1) Change the HTML content
2) Change the HTML Attributes
3) Change the HTML Styles (CSS)
4) Show/Hide HTML elements
5) Detect the visitor’s browser

JavaScript code must be inserted between <script> and </script> tags and can be placed in the <body>, or in the <head> section of an HTML page.

JavaScripts can also be placed in external files(myScript.js).

A JavaScript function can be called when an event occurs, like when the user clicks a button.

Advantages of JavaScript

1) Javascript is executed on the client side
2) It is easy to develop an interactive website using javascript
3) Javascript can be used for creating visual effects on the website
4) Easy to learn

.entry-meta
#post-

Leave a Reply