Please tell me about the prompt use in javascript
thanks
Prateek
Javascript
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Rajeswari nathan97 reputationPosted Sep 24, 2009, 10:40 PM EDT
It will show the message and get the input from used.
Following is simple example for prompt
var MyName = prompt("Type your name", "Defaultvalue");
The first parameter is message and the second parameter is the default message.