<button onClick="handleClick()">Prompt Box</button>
function handleClick() {
    var person = prompt("Please enter your name", "DEFAULT_VALUE");  
    // Do something with person
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.