Summary

This document contains examples of JavaScript and AJAX code. The JavaScript code demonstrates how to display alert, prompt, and confirm boxes. The AJAX code describes how to search student names dynamically.

Full Transcript

Write a javascript to display message ‘Exams are near, have Write a AJAX program to search Student name according you started preparing for?’ using alert, prompt and confirm to the character typed and display list using array boxes. Accept proper input from user and display messa...

Write a javascript to display message ‘Exams are near, have Write a AJAX program to search Student name according you started preparing for?’ using alert, prompt and confirm to the character typed and display list using array boxes. Accept proper input from user and display messages HTML file : accordingly. function Welcome Prompt Confirm ob.open("GET","slip20_2.php?q="+str); ob.send(); Alert ob.onreadystatechange=function() { if(ob.readyState==4 && ob.status==200) document.getElementById("a").innerHTML=ob.responseTe function promptfunction() { var temp = prompt('Exam are near, xt; } } Enter Name Of have you started preparing for it? Yes or No', 'No') if (temp === Student :--> function confirmfunction() { var temp = confirm('Exam are near, suggestions : have you started preparing for it?') if (temp == false) document.getElementById('ch').innerHTML ='Start preparing PHP file :

Use Quizgecko on...
Browser
Browser