<button id="b1" value="receive">receive</button>
<button id="b2" value="reject">reject</button>
js
var el = document.getElementsByTagName("button");
el.addEventListener("click",do,true);
function do(){
}
when b1 is pressed, the do function alert gives the id value of the pressed button. Excuse me, how to write the do function?