Trues,
<!DOCTYPE HTML>
<html>
<head>
<title>Untitled</title>
<meta charset="utf-8">
<style type="text/css">
.one{
width:500px;
height:500px;
background:#cdcdcd;
}
.two{
width:300px;
height:300px;
margin: auto;
background:#000000;
}
</style>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script>
$(function(){
$('.one').click(function( event ) {
if(event.target == this) alert('Hi all');
});
});
</script>
</head>
<body>
<div class='one'>
<div class='two'>
</div>
</div>
</body>
</html>