|
uCoz Community Archives Locked Get the address from the address bar with $variable$ |
Get the address from the address bar with $variable$ |
Hello,
Does anybody know how can i get the url from the address bar that i am in or the currently page that i am using with an $variable$ ? - Thanks! I Would Like To Kiss You But I Cant Tell Me Why Not My Baby ? ? ?
Post edited by ^WeSt - Sunday, 2011-01-30, 3:16 PM
|
^WeSt, do you mean actual website address to be displayed as a uCoz tag (for example, $URL_ADDRESS$).
For example for this thread, if you display $URL_ADDRESS$ - you will get: http://forum.ucoz.com/forum/5-12363-1 If that is what you want, it does not exist, but you can make a suggestion. |
^WeSt, unfortunately there isn't an active variable which can do this. You may be able to find a script on Google that can do this.
Please feel free to make a suggestion. |
Well i will tell you what exactlly i wanna do, i have a site and at the bottom of the site i have some country flags that when a user click on any flag , the currently address that user is to translate by translate.google.com , if i had this variable it would be very easy!
I Would Like To Kiss You But I Cant Tell Me Why Not My Baby ? ? ?
|
^WeSt, here is something shadowslash pointed out, you can just use the following code (place it where you want to display the address):
Code <script>document.write(window.location.href);</script> |
| |||
| |||