# Same browser tab Hyperlink Button in AS3?

**URL:** <https://forum.kirupa.com/t/same-browser-tab-hyperlink-button-in-as3/252984>\
**Category:** Uncategorized\
**Created:** [February 26, 2008, 5:08am UTC](https://forum.kirupa.com/t/same-browser-tab-hyperlink-button-in-as3/252984 "2008-02-26T05:08:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![JaymeNYC](https://avatars.discourse-cdn.com/v4/letter/j/ed8c4c/32.png) [@JaymeNYC](https://forum.kirupa.com/u/JaymeNYC)\
**Post date:** [February 26, 2008, 5:08am UTC](https://forum.kirupa.com/t/same-browser-tab-hyperlink-button-in-as3/252984/1 "2008-02-26T05:08:57Z")

</div>

I’m tryin to make a hyperlink button that opens in the same browser tab but when I click the button and then click the “Edit the ActionScript for this object” Arrow the ActionScript window says “Current selection cannot have actions applied to it.”…

Also is this the right code to have the page open in the same window

```auto
var url:String = "http://www.google.com";
var request:URLRequest = new URLRequest(url);
try {
  navigateToURL(request, '_self'); // second argument is target
} catch (e:Error) {
  trace("Error occurred!");
}

```

?
