Get the URL in the browser

Hi

I am new at Javascript. For now I am trying to find a way to check the the URL in the browser in order to print an alert like: your URL is: http://www.mysite.com/page2

Thanks :slight_smile: