Editor
Download
Open
Auto Run
<!DOCTYPE html> <html lang="en"> <head> <title>JavaScript Prompt Box</title> </head> <body> <input type="button" onclick="prompt('Enter your lucky digit number', '2')" value="Open Prompt Box" /> </body> </html>
Preview