getting part of a url
Posted: Fri Oct 28, 2005 9:35 am
If I had the following url
http://www.somename.com/secure/default.aspx
I would like to use javascript to get only 'default.aspx'
I know that I can use window.location to get the full url and location.pathname will give me '/secure/default.aspx' Any clues as to how I go about getting only the last part.
Thanks
http://www.somename.com/secure/default.aspx
I would like to use javascript to get only 'default.aspx'
I know that I can use window.location to get the full url and location.pathname will give me '/secure/default.aspx' Any clues as to how I go about getting only the last part.
Thanks