# Open link in same window using as3 code

**URL:** <https://forum.kirupa.com/t/open-link-in-same-window-using-as3-code/269890>\
**Category:** Uncategorized\
**Created:** [September 2, 2008, 7:34pm UTC](https://forum.kirupa.com/t/open-link-in-same-window-using-as3-code/269890 "2008-09-02T19:34:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![wdv](https://avatars.discourse-cdn.com/v4/letter/w/9fc29f/32.png) [@wdv](https://forum.kirupa.com/u/wdv)\
**Post date:** [September 2, 2008, 7:34pm UTC](https://forum.kirupa.com/t/open-link-in-same-window-using-as3-code/269890/1 "2008-09-02T19:34:38Z")

</div>

This code opens my links in a new window how do i set to open in same window using AS3?

private function \_mouseClickHandler(event:MouseEvent):void {  
var request:URLRequest=new URLRequest(event.target.href);  
navigateToURL(request);  
//trace(event.target.href);  
}
