<html>
<head>
<script type="text/javascript">
function disp_confirm()
{
var r=confirm("apasa un buton");
if (r==true)
{
document.write("Ai apasat OK!");
}
else
{
document.write("Ai apasat Cancel!");
}
}
</script>
</head>
<body>
<input type="button" onclick="disp_confirm()" value="Afiseaza o caseta de confirmare" />
</body>
</html>
Documentul este oferit gratuit,
trebuie doar să te autentifici in contul tău.