You can set a session object to the current page openning in the pageload
event.
Thus, when a new page load, it can get the name of the last page from the
session object.
I am not sure this is the best solution to get the name of the previous
page, but this is a way to get to it.
If you mean that you want to get the name of the previous page using client
side scripts, then this is another issue
Regards
Mohamed El Ashmawy
MEA Developer Support Center
ITWorx on behalf of Microsoft EMEA GTSC