# Wtf! all I want is a new window from a button?!?

**URL:** <https://forum.kirupa.com/t/wtf-all-i-want-is-a-new-window-from-a-button/150208>\
**Category:** Uncategorized\
**Created:** [June 5, 2005, 9:11pm UTC](https://forum.kirupa.com/t/wtf-all-i-want-is-a-new-window-from-a-button/150208 "2005-06-05T21:11:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rightclick](https://avatars.discourse-cdn.com/v4/letter/r/8c91f0/32.png) [@rightclick](https://forum.kirupa.com/u/rightclick)\
**Post date:** [June 5, 2005, 9:11pm UTC](https://forum.kirupa.com/t/wtf-all-i-want-is-a-new-window-from-a-button/150208/1 "2005-06-05T21:11:01Z")

</div>

having trouble getting an .swf to load into a new window, here is the code ive tried:

```auto
on (press) {
loadMovie("movie1.swf", "target");
}
on (press) {
loadMovieNum("movie1.swf", 1);
}
on (press) {
getURL("http://www.google.com", "_blank");
}
on (press) {
getURL("movie1.swf", "_blank");
}

```

the first loads into the current page

the second loads above the current movie but in the same window

the third does open a new window (google for example), but i cant translate it to open a new swf

the fourth seems like it would work, but it opens up (get this!) 2 tabs in firefox - 1. a google search for keywords related to my page but listed nowhere in my code and 2. a blank tab.

How can i get a button to load an .swf in a new browser window?

btw - these are only images being loaded as new .swfs. maybe theres a better way to do this?
