Get the file name from URL

If you want to get/extract the file name from a string/URL:
e.g
To get manu.php from http://www.sanjeeve.com/manu.php

document.write(location.href.substring(location.href.lastIndexOf('/')+1));