IMRAN DAUDFOUNDATION UNIVERSITYINSTITUTE OF MANAGEMENT ANDCOMPUTER SCIENCESImran DaudFUIMCSWeb EngineeringJavaScript
 Java Script can be used in following two differentways: Within html code In separate file (file.js)
Html Code and JavaScript
JavaScript file
Datatypes Three Core data types Integer String Boolean In addition to basic types we have Null undefined
String String can be handled in single or double quotes. Example:
Declaring and initializing variables
Dialog Boxes Ask question get answers and respond using windowbased messages dialog boxes. Three methods Alert()  aler...
Condition and loops If – else statement Switch Loops  for , while, do while
Functions
Function with argument
Associating Function with form field Any functionality can be associated with any formfield. E.g. <input type="text" id=...
Objects in Script
Associating Function with Object
Array and Date
Accessing Form Fields
Forms
Example
Example
Reference JavaScript By example 2nd Edition by Ellie Quigley
8. java script
8. java script
8. java script
Upcoming SlideShare
Loading in...5
×

8. java script

210

Published on

JSP (Java Server Pages) Lecture # 8
Struts the most special parts and very easy part of the JSP language and the framework of jsp, Very east lecture

Published in: Technology, News & Politics
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
210
On Slideshare
0
From Embeds
0
Number of Embeds
6
Actions
Shares
0
Downloads
0
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Transcript of "8. java script"

  1. 1. IMRAN DAUDFOUNDATION UNIVERSITYINSTITUTE OF MANAGEMENT ANDCOMPUTER SCIENCESImran DaudFUIMCSWeb EngineeringJavaScript
  2. 2.  Java Script can be used in following two differentways: Within html code In separate file (file.js)
  3. 3. Html Code and JavaScript
  4. 4. JavaScript file
  5. 5. Datatypes Three Core data types Integer String Boolean In addition to basic types we have Null undefined
  6. 6. String String can be handled in single or double quotes. Example:
  7. 7. Declaring and initializing variables
  8. 8. Dialog Boxes Ask question get answers and respond using windowbased messages dialog boxes. Three methods Alert()  alert(String) Prompt()  prompt(text, value) Confirm()  confirm(message)
  9. 9. Condition and loops If – else statement Switch Loops  for , while, do while
  10. 10. Functions
  11. 11. Function with argument
  12. 12. Associating Function with form field Any functionality can be associated with any formfield. E.g. <input type="text" id="input" value="" onchange="err()"/>
  13. 13. Objects in Script
  14. 14. Associating Function with Object
  15. 15. Array and Date
  16. 16. Accessing Form Fields
  17. 17. Forms
  18. 18. Example
  19. 19. Example
  20. 20. Reference JavaScript By example 2nd Edition by Ellie Quigley

×