Web Programming – Java Script Association of Computing Activities Computer Science and Engineering...
-
Upload
brendan-norris -
Category
Documents
-
view
216 -
download
3
Transcript of Web Programming – Java Script Association of Computing Activities Computer Science and Engineering...
Web Programming – Java Script
Association of Computing Activities Computer Science and Engineering
Indian Institute of Technology Kanpur
XAMPP
• Download and Install XAMPP• Start the xampp server by clicking on the
desktop icon(if it asks click on the mysql,apache)
• Check http://localhost• If you want to run file.php then type in your
browser localhost/file.php
Java Script
• Scripting Language• User Side dynamic(than php)• Case Sensitive
Outline of Lecture
• Format• Basics• Functions• Popups• Events• Validation
Format
• Written mostly with html• Script tag with attribute type• ID for part of the code
Basics
• document.getElementById(“ “)• inner.HTML=“ ”;• Variables• var …. = “ “;
Functions
• Function name() { }• Button with onclick attribute =“name”• Clicking on the function executes the function• Hidden text
popups
• alert(“ “);• Confirm( “ “);• Prompt(“ “,” ”);• window.location = “ ";• Indexof();