<html> <body> <button onclick="this.disabled='true'; alert(this.isDisabled);">Disable Me</button> </body> </html>