I was wondering if it would be possible to get the page name from the address bar using jquery or javascript. I know this can be done using PHP but don\'t really want to as
Try this
location.pathname.substring(location.pathname.lastIndexOf("/") + 1);
location.pathname gives the part(domain not included) of the page url. To get only the filename you have to extaract it using substring method.
location.pathname
substring