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
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?