Javascript Example - PowerPoint PPT Presentation

1 / 8
About This Presentation
Title:

Javascript Example

Description:

Alert. Used to display an alert box. Syntax: alert('text'); Variables. Store values for calculations. Declared as ... Used to confirm if the user input is true or not. ... – PowerPoint PPT presentation

Number of Views:19
Avg rating:3.0/5.0
Slides: 9
Provided by: pratik1
Category:

less

Transcript and Presenter's Notes

Title: Javascript Example


1
Javascript Example
  • Pratik Desai

2
Javascript
  • It is a scripting language, used in conjunction
    with HTML.
  • Adds user interactivity to HTML.

3
Javascript Tag
  • ltscript type"text/javascript"gt.....lt/scriptgt
  • ltscriptgt.lt/scriptgt

4
Alert
  • Used to display an alert box
  • Syntaxalert(text)

5
Variables
  • Store values for calculations
  • Declared as var variable_namevariable_value

6
Prompt
  • Used to get User Input whenever needed.
  • Syntaxvar var_nameprompt(text)

7
Confirm
  • Used to confirm if the user input is true or not.
  • If clicked OK, returns true value else returns
    false value.
  • Syntaxconfirm(textvar_nametext)

8
Output
  • Used to show output on the webpage
  • Syntaxdocument.write(Hello World!)
Write a Comment
User Comments (0)
About PowerShow.com