I am looking to get the url of current page in url bar 

> 
> [BookMark Button In Tool Bar] - User Presses it while on a youtube link 
>  and sends it to sitename.com/test.php
> 
> 
> 

The url in the bookmark then prints something like 

```
sitename.com/test.php?url=http://www.youtbe.com/whateverwatever

```

I tried using referrer bur since it's coming from a bookmark link it won't work 
I also tried the referrer in Javascript but it still won't work