# How to get the URL typed in the address bar

**URL:** <https://forum.kirupa.com/t/how-to-get-the-url-typed-in-the-address-bar/297907>\
**Category:** Uncategorized\
**Created:** [October 10, 2009, 12:29am UTC](https://forum.kirupa.com/t/how-to-get-the-url-typed-in-the-address-bar/297907 "2009-10-10T00:29:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![quicksmack](https://avatars.discourse-cdn.com/v4/letter/q/fbc32d/32.png) [@quicksmack](https://forum.kirupa.com/u/quicksmack)\
**Post date:** [October 10, 2009, 12:29am UTC](https://forum.kirupa.com/t/how-to-get-the-url-typed-in-the-address-bar/297907/1 "2009-10-10T00:29:23Z")

</div>

how do you get the URL thats in the browsers address bar?

```auto

function getURLFromAB():void
{
var urladdress:String = // some command goes here

trace(urlAddress);
}

```
