PDA

View Full Version : insert current url


dektek11
01-25-2005, 12:15 AM
Is there a way to grab my current url and insert it into a script in an html page as the new page loads?

Kravvitz
01-26-2005, 04:27 PM
window.location.href

senshi
01-27-2005, 09:40 AM
Or you can use window.location.pathname if you just want the relative path & filename from the whole URL.