how to get the dialog box input data html code example Example: js prompt var answer = prompt('What is your name?','Joe Blogg');