Here, have some code. ``` $('a[href*=#]:not([href=#])').click(function(e) { if (location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') && location.hostname == this.hostname) { ```