# Flash buttons makes a html page load in a iframe

**URL:** <https://forum.kirupa.com/t/flash-buttons-makes-a-html-page-load-in-a-iframe/121658>\
**Category:** Uncategorized\
**Created:** [September 5, 2004, 8:30am UTC](https://forum.kirupa.com/t/flash-buttons-makes-a-html-page-load-in-a-iframe/121658 "2004-09-05T08:30:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Simon\_Henriksen](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/simon_henriksen/32/625_2.png) [@Simon\_Henriksen](https://forum.kirupa.com/u/Simon_Henriksen)\
**Post date:** [September 5, 2004, 8:30am UTC](https://forum.kirupa.com/t/flash-buttons-makes-a-html-page-load-in-a-iframe/121658/1 "2004-09-05T08:30:58Z")

</div>

Hi mates,

I’ve a problem. I think it’s pretty strange since it should work.

I want to load a html page in a iframe when i click a flash button.

My code for the iframe:

```auto
<iframe name="IFRAME" height="100%" width="100%" border="0" frameborder="0" title="IFRAME">Your browser does not support iframes. Sorry.</iframe>

```

So the name of the iframe is IFRAME.

The actionscript for my button:

```auto
on (release) {
	getURL("news.html", "IFRAME");
}

```

Shouldn’t that be alright? I’ve tried with \_IFRAME too, but didn’t work out. Instead of opening in the iframe, it opens in a new window.  
My flash button is on the main page, not in a iframe and the iframe is on the mainpage too.

What’s wrong?

Cheers,  
Simon Henriksen
