<!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>CasperJS test prompt</title> </head> <body> <script> var name = prompt('what is your name?', 'Norris'); </script> </body> </html>