cara mendeteksi tombol klik di JavaScript

if(document.getElementById('button').clicked == true)
{
   alert("button was clicked");
}
Bloody Beetle