<HTML>
<HEAD>
<TITLE>confirm dialog</TITLE>
<SCRIPT LANGUAGE="JavaScript">
function clearTable() {
if (confirm("Are you sure you want to empty the table?")) {
alert("Emptying the table...")
}
}
</SCRIPT>
</HEAD>
<BODY>
<FORM>
<INPUT TYPE="button" NAME="clear" VALUE="Reset Table" onClick="clearTable()">
</FORM>
</BODY>
</HTML>
|