PDA

View Full Version : name of the page


ShMiL
03-29-2003, 05:32 PM
Is it possible to extract the name of the page without using location.href?
(let's say www.codingforums.com loads the page index.htm, but location.href can't tell the name of the page)

Thanks

liorean
03-29-2003, 05:54 PM
Nope- there's no way to find out what page really gets sent - from the client's point of view, example.com/ and example.com/filename are two separate files even if they happen to contain the same information. Only if the example.com/ address does a redirect to the example.com/filename address can you find it out. It's practical to have it that way, and it adds a layer of security.