Edit in JSFiddle

<button id="pause">Click me to see this feature</button>
<p>Don't forget to open Chrome Dev Tools before clicking the above button ;)</p>
$('#pause').on('click', function () {
    debugger;
    $(this).text('clicked');
    alert('Is this cool feature? ;)');
});