AshwaDip Tutorials

  1. Intro

What is Java Script?

Java Script is light weight, open source client as well as server side scripting language.
In begining it known as Live Script, but NetScape changed its name to Java Script(1995).
We can intigrate it with the HTML page.

What is the use of Java Script?

  1. To Create Dynamic Web pages.
    (Dynamic means changes can be done through the Admin panel rather than the Database. Exactly oposite to static.)
  2. For the Validation Purpose.
  3. To featch the user information like: IP Address, Browsers Details,Location etc.

What is the Advantates of Java Script?

  1. Less server interaction.(Because we do validation using client side java Script)
  2. Immediate feedback to user without submitting or refreshing page.
  3. Ritcher Interface.

What should we already know?

HTML, CSS, Coding.

What do we need to start?

Computer, Browser, Editor, Virtual Server like: XAMP, WAMP, MAMP, LAMP etc.

Before stat we should know

  1. White space doesnt affect.
  2. Line space doesnt affect.
  3. Semicolumns are not mandatory.
  4. single line comment. ie://........
  5. Multiline comment. ie./*..........*/
  6. It is case sensitive language.
  7. Java script file should save with .js extension.

1. Program have alert box submit button and one function.

Note: We can write script in head, body also we can create seperate Java Script .js file.

2. Program have alert box submit button and one function. (Using seperate new.js file)
test.html

new.js