Click to See Complete Forum and Search --> : Displaying URL


Aronya1
03-16-2003, 09:43 PM
Can anyone help with this, please?

I have a client who wants the URL from each page of his website to be displayed at the bottom of the page, like this:
www.clientswebsite.com/page1.htm

Is there a way to do this using DHTML or JS? Any suggestions would be appreciated.

TIA
Aronya1

Aronya1
03-16-2003, 10:28 PM
Works perfectly, Dave.

My fingers thank you mucho.


Aronya1

pyro
03-16-2003, 10:37 PM
Out of cusiosity...Why get the host and pathname seperately? Why not do it like this:

document.write(unescape(window.location));

pyro
03-17-2003, 08:06 AM
Ah, ok... ;)