<script>
function handle(event) {
event && event.stopPropagation() || window.event && (window.event.cancelBubble = true);
alert("Вы нажали на кнопку");
}
</script>
<div style="width: 500px; height: 500px; background: yellow" onclick="alert('Вы нажали на div')">
<input type="button" onclick="handle(event)" value="press me!">
</div>