<html>
<head>
<script type="text/javascript">
function show_box()
{
var r=confirm("Press a button");
if (r==true)
{
alert("You pressed OK!");
}
else
{
alert("You pressed Cancel!");
}
}
</script>
</head>
<body>
<input type="button" onclick="show_box()" value="Confirm box" />
</body>
</html>
Others
Languages
Frameworks
Web / Design
Mobile Technology
Sql & Technology
R4R