javascript Programming Glossary: www.somedomain.com
JavaScript - Get Portion of URL Path http://stackoverflow.com/questions/6944744/javascript-get-portion-of-url-path path from a URL using JavaScript Example I have URL http www.somedomain.com account search filter a#top but I would just like to get this.. will provide that for the current window. If URL is http www.somedomain.com account search filter a#top window.location.pathname account.. account search For reference window.location.host www.somedomain.com includes port if there is one window.location.hostname www.somedomain.com..
|