Tryit Editor v1.8

Source Code:
<!DOCTYPE html> <html> <head> <script src="../../ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"> </script> <script> $(document).ready(function(){ $("div").click(function(event){ event.stopPropagation(); alert("Was event.stopPropagation() called: " + event.isPropagationStopped()); }); }); </script> </head> <body> <div style="height:100px;width:300px;padding:10px;border:1px solid blue;background-color:lightblue;">Click on this div element.</div> </body> </html>
Result:
W3Schools.com - Try it yourself