D
Diarmaid
Hi!
I've built a dynamic navigation system which compares the filename in
the document URL with the filename in the navigation link in order to
determine which link to highlight as "active".
The problem I have is that the URL returned by document.URL (and
location.href) does not include the filename when I'm sitting on the
homepage. This means that when I compare the nav link with the
document URL, I don't get a match.
Eg:
document.URL and location.href returns "http://mydomain.com/"
The navigation link is "http://mydomain.com/index.html"
How can I find out the current document's filename if I'm sitting on
the homepage and the filename is not specified in the document URL?
Thanks in advance,
--Diarmaid.
I've built a dynamic navigation system which compares the filename in
the document URL with the filename in the navigation link in order to
determine which link to highlight as "active".
The problem I have is that the URL returned by document.URL (and
location.href) does not include the filename when I'm sitting on the
homepage. This means that when I compare the nav link with the
document URL, I don't get a match.
Eg:
document.URL and location.href returns "http://mydomain.com/"
The navigation link is "http://mydomain.com/index.html"
How can I find out the current document's filename if I'm sitting on
the homepage and the filename is not specified in the document URL?
Thanks in advance,
--Diarmaid.