T
Trevor L.
Since changing my site to non-framed, I end up with a lot of pages which can
be opened on their own and which have no apparent connection to my home
page. (Previously, if a frame was opened directly, there was a redirect to
the frameset.)
Is there a way to detect whether a page has been opened from another page in
the same site?
If there were, then I could put up a message saying "The Home Page of this
site is ...." together with a button to click to get there.
I thought of searching the History array and if there existed an entry for
http://tandcl.homemail.com.au/index.html, then I coudl assume that the site
had been entered from the home page.
But I have tried alert(history(0)) and alert(history[0]) - neither works.
One gives undefined the other gives nothing (in reverse order, I think).
In the meantime, I have put a Home button on most pages with
onclick="location.href='index.html'". On other pages, I have just put a
Close button.
be opened on their own and which have no apparent connection to my home
page. (Previously, if a frame was opened directly, there was a redirect to
the frameset.)
Is there a way to detect whether a page has been opened from another page in
the same site?
If there were, then I could put up a message saying "The Home Page of this
site is ...." together with a button to click to get there.
I thought of searching the History array and if there existed an entry for
http://tandcl.homemail.com.au/index.html, then I coudl assume that the site
had been entered from the home page.
But I have tried alert(history(0)) and alert(history[0]) - neither works.
One gives undefined the other gives nothing (in reverse order, I think).
In the meantime, I have put a Home button on most pages with
onclick="location.href='index.html'". On other pages, I have just put a
Close button.