# Open link in new browser window

**URL:** <https://forum.kirupa.com/t/open-link-in-new-browser-window/276447>\
**Category:** flash\
**Created:** [November 27, 2008, 2:00pm UTC](https://forum.kirupa.com/t/open-link-in-new-browser-window/276447 "2008-11-27T14:00:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![small\_guy](https://avatars.discourse-cdn.com/v4/letter/s/51bf81/32.png) [@small\_guy](https://forum.kirupa.com/u/small_guy)\
**Post date:** [November 27, 2008, 2:00pm UTC](https://forum.kirupa.com/t/open-link-in-new-browser-window/276447/1 "2008-11-27T14:00:20Z")

</div>

I am just starting out with AS 3.0 (after having worked with Flash and AS 2.0 for a number of years).

I picked up this code from another source to open a new URL

button.addEventListener(MouseEvent.CLICK, buttonClickHandler);

function buttonClickHandler(event:MouseEvent):void {  
navigateToURL(new URLRequest(“[http://www.kirupa.com](http://www.kirupa.com)”);  
}

This much all works fine. But my question is: how to open the new URL in its own browser window. In AS 2.0 it was just adding the “\_blank” part after the URL address. But that does not work here.

If someone could enlighten me on how this works with AS 3 it would be appreciated. Thanks.
