Menu
I’m trying to use the indexof function to get part or the url below.
[url]http://www.site.co.uk/facilities/build.asp
[CODE]thisPage = location.href.substring((location.href.lastIndexOf(“/”))+1)
alert(thisPage);
I just want to get the word in between the two /…/ in this case facilities but I’m having problems.
Any help would great.
Thanks
Jemes