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...
![Page 1: Web Programming – Java Script Association of Computing Activities Computer Science and Engineering Indian Institute of Technology Kanpur.](https://reader036.fdocuments.us/reader036/viewer/2022072011/56649e025503460f94aed931/html5/thumbnails/1.jpg)
Web Programming – Java Script
Association of Computing Activities Computer Science and Engineering
Indian Institute of Technology Kanpur
![Page 2: Web Programming – Java Script Association of Computing Activities Computer Science and Engineering Indian Institute of Technology Kanpur.](https://reader036.fdocuments.us/reader036/viewer/2022072011/56649e025503460f94aed931/html5/thumbnails/2.jpg)
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
![Page 3: Web Programming – Java Script Association of Computing Activities Computer Science and Engineering Indian Institute of Technology Kanpur.](https://reader036.fdocuments.us/reader036/viewer/2022072011/56649e025503460f94aed931/html5/thumbnails/3.jpg)
Java Script
• Scripting Language• User Side dynamic(than php)• Case Sensitive
![Page 4: Web Programming – Java Script Association of Computing Activities Computer Science and Engineering Indian Institute of Technology Kanpur.](https://reader036.fdocuments.us/reader036/viewer/2022072011/56649e025503460f94aed931/html5/thumbnails/4.jpg)
Outline of Lecture
• Format• Basics• Functions• Popups• Events• Validation
![Page 5: Web Programming – Java Script Association of Computing Activities Computer Science and Engineering Indian Institute of Technology Kanpur.](https://reader036.fdocuments.us/reader036/viewer/2022072011/56649e025503460f94aed931/html5/thumbnails/5.jpg)
Format
• Written mostly with html• Script tag with attribute type• ID for part of the code
![Page 6: Web Programming – Java Script Association of Computing Activities Computer Science and Engineering Indian Institute of Technology Kanpur.](https://reader036.fdocuments.us/reader036/viewer/2022072011/56649e025503460f94aed931/html5/thumbnails/6.jpg)
Basics
• document.getElementById(“ “)• inner.HTML=“ ”;• Variables• var …. = “ “;
![Page 7: Web Programming – Java Script Association of Computing Activities Computer Science and Engineering Indian Institute of Technology Kanpur.](https://reader036.fdocuments.us/reader036/viewer/2022072011/56649e025503460f94aed931/html5/thumbnails/7.jpg)
Functions
• Function name() { }• Button with onclick attribute =“name”• Clicking on the function executes the function• Hidden text
![Page 8: Web Programming – Java Script Association of Computing Activities Computer Science and Engineering Indian Institute of Technology Kanpur.](https://reader036.fdocuments.us/reader036/viewer/2022072011/56649e025503460f94aed931/html5/thumbnails/8.jpg)
popups
• alert(“ “);• Confirm( “ “);• Prompt(“ “,” ”);• window.location = “ ";• Indexof();