It's window.prompt("message", "default"), where message is the text on the box, default is the default text in the user input area. It returns the string the user typed, an empty string if they didn't type anything, and null if they clicked cancel.