mobius1983
Technical User
Hi everyone,
Hope someone can help, I need to display the name of the file that is being displayed on all the pages of my company intranet (e.g index.htm, contents.htm)
I can get it using the window.location.href and then only using any text that is after the last '/'. This works ok apart from on the first page because you do not specify the page name (e.g returns nothing because there is no page name specified in the URL).
I am also not sure if this method would work if the page was inside a frameset.
If anyone knows of a way you can get the page filename I would be forever in your debt!
Thanks in advance
Nick.
Hope someone can help, I need to display the name of the file that is being displayed on all the pages of my company intranet (e.g index.htm, contents.htm)
I can get it using the window.location.href and then only using any text that is after the last '/'. This works ok apart from on the first page because you do not specify the page name (e.g returns nothing because there is no page name specified in the URL).
I am also not sure if this method would work if the page was inside a frameset.
If anyone knows of a way you can get the page filename I would be forever in your debt!
Thanks in advance
Nick.