# HELP! Button To Open New Web Window

**URL:** <https://forum.kirupa.com/t/help-button-to-open-new-web-window/5493>\
**Category:** Uncategorized\
**Created:** [September 13, 2002, 6:20am UTC](https://forum.kirupa.com/t/help-button-to-open-new-web-window/5493 "2002-09-13T06:20:54Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sykull](https://avatars.discourse-cdn.com/v4/letter/s/d9b06d/32.png) [@Sykull](https://forum.kirupa.com/u/Sykull)\
**Post date:** [September 13, 2002, 6:20am UTC](https://forum.kirupa.com/t/help-button-to-open-new-web-window/5493/1 "2002-09-13T06:20:54Z")

</div>

Im making a button for my friend for his web site, so when it is clicked. It will take the clicker to the index of the page. What is the code, or what steps do I do to make it do that. Also, if you can in flash. Can I make it so the window opens in the current one with the button?

---

<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:** [September 13, 2002, 6:31am UTC](https://forum.kirupa.com/t/help-button-to-open-new-web-window/5493/2 "2002-09-13T06:31:23Z")

</div>

NEW WINDOW

on(release){  
getURL(“[http://www.yoursite.com](http://www.yoursite.com)”,"\_blank")  
}

SAME WINDOW

on(release){  
getURL(“[http://www.yoursite.com](http://www.yoursite.com)”,"\_self")  
}

---

<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:** [September 13, 2002, 6:44am UTC](https://forum.kirupa.com/t/help-button-to-open-new-web-window/5493/3 "2002-09-13T06:44:32Z")

</div>

^THANKS!! Now If I click this in my window after hitting CTRL+Enter will it screw it up??

BTW: Do U Have AIM/AOL ?

---

<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:** [September 13, 2002, 6:51am UTC](https://forum.kirupa.com/t/help-button-to-open-new-web-window/5493/4 "2002-09-13T06:51:04Z")

</div>

No it will not. I just tested it to make sure and I recieved no error.

---

<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:** [September 13, 2002, 6:52am UTC](https://forum.kirupa.com/t/help-button-to-open-new-web-window/5493/5 "2002-09-13T06:52:30Z")

</div>

It wont screw anything up, but it may not have an immediate effect when tested that way. I think in test mode it will open a new window regardless of the option you picked though.

not entirely sure to tell the truth… test it out… worst case senario you have to task manager your flash program closed… but I doubt that it would even be that bad.

---

<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:** [September 13, 2002, 6:54am UTC](https://forum.kirupa.com/t/help-button-to-open-new-web-window/5493/6 "2002-09-13T06:54:35Z")

</div>

You are right david, it opens in a new window if you view it from CTRL+Enter, but if you view it on your HTML page it will give you the effect you want.

It doesn’t effect the program in any way.

---

<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:** [September 13, 2002, 7:25am UTC](https://forum.kirupa.com/t/help-button-to-open-new-web-window/5493/7 "2002-09-13T07:25:45Z")

</div>

Yea it messed it up lol. Thanks tho.

PS: Can you guys give me the code for HTML to have ya flash ish show up… You can give me fake Dimensions and [www.yoursite.com](http://www.yoursite.com) for the URL to be easier… thanks

---

<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:** [September 13, 2002, 8:10am UTC](https://forum.kirupa.com/t/help-button-to-open-new-web-window/5493/8 "2002-09-13T08:10:31Z")

</div>

I have added a little page for you to view on my company site that will show you the coding for adding a .SWF file to your site 😉

Hope it helps!

Click [here](http://www.gpinteractive.com/flashinput.htm) to go to the page.

---

<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:** [September 13, 2002, 3:10pm UTC](https://forum.kirupa.com/t/help-button-to-open-new-web-window/5493/9 "2002-09-13T15:10:19Z")

</div>

It really shouldn’t have messed anything up… Here I will copy and paste my the code I have…

NEW WINDOW

```auto
on (release) {
	getURL("http://www.yoursite.com", "_blank");
}

```

SAME WINDOW

```auto
on (release) {
	getURL("http://www.yoursite.com", "_self");
}

```

Both of these were tried, tested and true. They both work no problem.
