Checkbox which item checked?

How does one see which checkbox a user clicked on? I tried using onclick and onchange with this code (javascript):

alert("checkbox value clicked" + chkbxReq1.value)

The onchange method should be working.

Checkbox1.onchange = function() {
  NSB.MsgBox("Choice is "  +  Checkbox1.value);
};