<div id="block"> <a href="bla-bla">bla</a> <img src=""> <p onclick="">bla</p> <a href="bla-bla" onclick="">bla</a> </div>
<div id="block"> <a href="bla-bla">bla</a> <img src=""> <p onclick="">bla</p> <a href="bla-bla" onclick="">bla</a> </div> <script type="text/javascript"> var block = document.getElementById('block'); function ifClick() { alert('ok'); block.onclick = null; return false; } block.onclick = ifClick; </script>