When I attach a click handler inside the procedure of another click handler, the same event immediately triggers the newly defined handler. How to prevent this?
<input onclick="document.body.addEventListener('click',function(){
document.body.removeEventListener('click',this);alert('test');})">