HTML Forums - Free Webmaster Forums and Help Forums
>
WEBSITE DEVELOPMENT
>
Client Side Scripting
> insert current url
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.
vBulletin® v3.6.7, Copyright ©2000-2009, Jelsoft Enterprises Ltd.