asi:
Código Javascript
:
Ver original<html>
<head>
<script type="text/javascript">
function show_confirm()
{
var r=confirm("presiona un boton");
if (r==true)
{
alert("presionaste OK!");
}
else
{
alert("presionaste Cancel!");
}
}
</script>
</head>
<body>
<input type="button" onclick="show_confirm()" value="ventana de confirmacion" />
</body>
</html>