2016-01-12 07:34:09 +01:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
2016-01-14 07:01:58 +01:00
|
|
|
<script type="text/javascript">
|
|
|
|
function prompter() {
|
|
|
|
var reply = prompt("js prompt", "")
|
|
|
|
console.log("Prompt reply: " + reply)
|
|
|
|
}
|
|
|
|
</script>
|
2016-01-12 07:34:09 +01:00
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<input type="button" onclick="prompter()" value="Show prompt">
|
|
|
|
</body>
|
|
|
|
</html>
|