Question
Display alert box, confirmation box, prompt box and call a function. Create a button, when user presses on it, it display an alert box
Display alert box, confirmation box, prompt box and call a function.
• Create a button, when user presses on it, it display an alert box with a message.
• Create a button, when user presses on it, it display a prompt box for input. User enter some text and it display text either on the web page or an alert box.
• Create another button when user clicks on it. it displays a confirmation box.
• Finally create a function and call it by clicking on a button and it displays some text through an alert box.
You are going to match the output below:
JavaScript Ofile//E:/THE UNIVERSITY OF LAHOREJA C Google JavaScript Alert, Confirm and Prompt Boxes. Display an Alert box Display an Contim box Display an Prompt box Call through a function Hello every boa! OK Javascript file///ESTHE UNIVERSITY OF LAHORE/ Y C 8- Google JavaScript Alert, Confirm and Prompt Boxes. Display an Alert box Display an Corfirm box Display an Promptbox Call fhrough a function Press a buton Prevent this page frorm creating adcitional dalogs OK Cancel
Step by Step Solution
3.48 Rating (151 Votes )
There are 3 Steps involved in it
Step: 1
To create a webpage HTML CSS and JAVASCRIPT will be used HTML is defined ...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started