# Javascript URL

**URL:** <https://forum.kirupa.com/t/javascript-url/234574>\
**Category:** web dev\
**Created:** [August 3, 2007, 1:38pm UTC](https://forum.kirupa.com/t/javascript-url/234574 "2007-08-03T13:38:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![thatguythatsme](https://avatars.discourse-cdn.com/v4/letter/t/c0e974/32.png) [@thatguythatsme](https://forum.kirupa.com/u/thatguythatsme)\
**Post date:** [August 3, 2007, 1:38pm UTC](https://forum.kirupa.com/t/javascript-url/234574/1 "2007-08-03T13:38:32Z")

</div>

Is there a way to grab the url of a page. Not just the full url line ‘window.location.href’ which would equal [http://www.mysite.co.uk/aboutme](http://www.mysite.co.uk/aboutme)… I want to just get the /about me section without the full address.?

Thanks  
David
