I want to find out what is the file name of the page that a user is currently viewing (for e.g. the file name of the page where I am composing this query currently is newthread.php). If the file name is Edit.asp, then do something else......this is the code (this is the onLoad event function)
//since the file name will be at the end of the URL, I am using
//a negative number as the start parameter in the substr function
//do something else
Can someone please tell how do I resolve this?