मराठी
तामिळनाडू बोर्ड ऑफ सेकेंडरी एज्युकेशनएचएससी विज्ञान इयत्ता ११

What is the uses of prompt dialog box? - Computer Applications

Advertisements
Advertisements

प्रश्न

What is the uses of prompt dialog box?

टीपा लिहा

उत्तर

The prompt dialog box is very useful when the user want to pop-up a text box to get user input. Thus, it enables you to interact with the user. The user needs to fill in the text box field and then click OK.

The Syntax of prompt dialog box is:

Prompt(“Message”,”defaultValue”);
(or)
window.prompt(”sometext”,”defaultText”);

Example:

prompt(“Enter Your Name:”,”Name”);
(or)
window.prompt(“Enter Your Name:”,”Name”);
shaalaa.com
Javascript Popup or Dialog Boxes
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 14: Introduction to Javascript - Evaluation [पृष्ठ ३१४]

APPEARS IN

सामाचीर कलवी Computer Applications [English] Class 11 TN Board
पाठ 14 Introduction to Javascript
Evaluation | Q 9. | पृष्ठ ३१४
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×