# Get the URL in the browser

**URL:** <https://forum.kirupa.com/t/get-the-url-in-the-browser/290642>\
**Category:** web dev\
**Created:** [June 17, 2009, 3:44pm UTC](https://forum.kirupa.com/t/get-the-url-in-the-browser/290642 "2009-06-17T15:44:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ruiganga](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/ruiganga/32/3679_2.png) [@ruiganga](https://forum.kirupa.com/u/ruiganga)\
**Post date:** [June 17, 2009, 3:44pm UTC](https://forum.kirupa.com/t/get-the-url-in-the-browser/290642/1 "2009-06-17T15:44:02Z")

</div>

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](http://www.mysite.com/page2)

Thanks 🙂
