# Oops...i mean Hit a URL w/o opening a new browser?

**URL:** https://forum.kirupa.com/t/oops-i-mean-hit-a-url-w-o-opening-a-new-browser/11746
**Category:** Uncategorized
**Created:** [January 21, 2003, 7:26pm UTC](https://forum.kirupa.com/t/oops-i-mean-hit-a-url-w-o-opening-a-new-browser/11746 "2003-01-21T19:26:52Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![ToddziLLa](https://avatars.discourse-cdn.com/v4/letter/t/3be4f8/32.png) [@ToddziLLa](https://forum.kirupa.com/u/ToddziLLa)
#### Post date: [January 21, 2003, 7:26pm UTC](https://forum.kirupa.com/t/oops-i-mean-hit-a-url-w-o-opening-a-new-browser/11746/1 "2003-01-21T19:26:52Z")

</div>

Is there a way (function) in MX that will, onClipEvent, hit (or open) a URL without physically opening up a new browser?

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [January 21, 2003, 9:42pm UTC](https://forum.kirupa.com/t/oops-i-mean-hit-a-url-w-o-opening-a-new-browser/11746/2 "2003-01-21T21:42:35Z")

</div>

on (release){  
getURL(“yourfile.html”, “\_self”);  
}

This says that when you release the button (after you click on it) your browser will go to yourfile.html.

You can have \_self for same window, \_blank for new window, or you can just replace it with a name if you are using frames and are targeting a particular frame name.

Also remember, when testing the movie inside Flash, it will always open up a new window as Flash is not a browser. To test the code you will have to publish your movie to a .html file and test it in there.
