summaryrefslogtreecommitdiffstats
path: root/kjsembed/docs/examples/builtins/messages.js
blob: 4fba62bf17f7babc056d764e374408b1ce95d439 (plain)
1
2
3
4
5
6
7
8
#!/usr/bin/env kjscmd

var text = prompt("Enter some text.", "Some text");
var cnf = confirm("Did you really mean to enter " + text );
if ( cnf == 3) {
	alert("Good job entering " + text );
} else
	alert("Maby you need to try harder next time.");