jquerry look for a number in a url code example Example: jquery get URL slug var pathname = window.location.pathname;