CodePaste Logo
New Snippet New Snippet Recent Snippets Recent Snippets My Snippets My Snippets Web Code Search Snippets Search
Sign inor Register
Format:
Recent snippets matching tags of Current page
//get the path name
var sPath = window.location.pathname;
//get the page name with extension
var sPage = sPath.substring(sPath.lastIndexOf('/') + 1);
//Show it :)
alert(sPage);
by Egli   September 07, 2011 @ 2:45am
101 Views
no comments
 
brought to you by:
West Wind Techologies



If you find this site useful and use it frequently please consider making a donation to support this free service.
Donate