Prompts the user for text and then alerts it back to them.

<script type="text/javascript">

var value = prompt("Enter Some Text", "Default Value");

alert(value);

</script>