# navigateToURL

**URL:** https://forum.kirupa.com/t/navigatetourl/305667
**Category:** flash
**Created:** [March 1, 2010, 5:48pm UTC](https://forum.kirupa.com/t/navigatetourl/305667 "2010-03-01T17:48:59Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Alex615](https://avatars.discourse-cdn.com/v4/letter/a/b77776/32.png) [@Alex615](https://forum.kirupa.com/u/Alex615)
#### Post date: [March 1, 2010, 5:48pm UTC](https://forum.kirupa.com/t/navigatetourl/305667/1 "2010-03-01T17:48:59Z")

</div>

Hey everyone,

I have this site I am updating and I have a little issue. I made a button that navigates to a URL with a \_self target. Well, in the script, i have it like this:

```auto
clickhere2Btn.addEventListener(MouseEvent.MOUSE_DOWN, myHandler);
function myHandler(event:MouseEvent):void {
    navigateToURL(new URLRequest("https://app.playmakercrm.com/register/eNortjK0UjJWsgZcMAkeAcs!"), "_self");
}

```

the “\_self” isn’t working on the page, but when i take out the target, it works just find, it opens in a new page which i don’t want.

You can check it out here

```auto
dev.myhomecaresalescoach.com

```

and watch that flash header for about 30 seconds, theres a button at the end that reads “Click Here” try clicking on that and it wont take you to the URL.

Is the code wrong or something?
