• Page 1 of 1
  • 1
Get the address from the address bar with $variable$
^WeSt
Posts: 38
Reputation: 0

Message # 1 | 3:00 PM
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$ ?
or with any other code?

- Thanks! wink


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
Animorph
Posts: 2856
Reputation: 189

Message # 2 | 7:08 PM
^WeSt, be more specific about what do you want the URL from your address bar isn't so informative
To busy building a passive income online ;)
CodeResolution
Posts: 1570
Reputation: 58

Message # 3 | 8:35 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.


Kind regards,
Elliott.

"The best uCoz" critic since 2007.
Qualified website, branding, print & user interface designer.

I'm on Behance and Twitter.
^WeSt
Posts: 38
Reputation: 0

Message # 4 | 11:19 PM
CreativeCollusions, Yes man that exactly i want! which variable is that doing that?

- Thanks!


I Would Like To Kiss You But I Cant Tell Me Why Not My Baby ? ? ?
CodeResolution
Posts: 1570
Reputation: 58

Message # 5 | 11:22 PM
^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.


Kind regards,
Elliott.

"The best uCoz" critic since 2007.
Qualified website, branding, print & user interface designer.

I'm on Behance and Twitter.
^WeSt
Posts: 38
Reputation: 0

Message # 6 | 0:02 AM
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 ? ? ?
CodeResolution
Posts: 1570
Reputation: 58

Message # 7 | 8:45 AM
^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>

Kind regards,
Elliott.

"The best uCoz" critic since 2007.
Qualified website, branding, print & user interface designer.

I'm on Behance and Twitter.
  • Page 1 of 1
  • 1
Search: