location.pathname displays current page path name.
Output