eve/test/test-js-confirm.html

27 lines
697 B
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title> Test JS confirm message </title>
<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
function show_confirm() {
ret = confirm("I'm going to test ok button");
if (ret)
alert("chosen: OK");
else
alert("chosen: Cancel");
}
</SCRIPT>
</head>
<body>
<h1>test js confirm messsage</h1>
<br>
This test shows a confirm message, waiting for user to answer OK or CANCEL. Tipically it is implemented
as a dialog. The default handling function is to print to stdout and confirm.
<p><input type='button' value='Show confirm' onClick='show_confirm()'></p>
</body>
</html>