# Button targets new window instead of frame! HELP!

**URL:** <https://forum.kirupa.com/t/button-targets-new-window-instead-of-frame-help/255585>\
**Category:** Uncategorized\
**Created:** [March 25, 2008, 1:48am UTC](https://forum.kirupa.com/t/button-targets-new-window-instead-of-frame-help/255585 "2008-03-25T01:48:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kylberg](https://avatars.discourse-cdn.com/v4/letter/k/8491ac/32.png) [@kylberg](https://forum.kirupa.com/u/kylberg)\
**Post date:** [March 25, 2008, 1:48am UTC](https://forum.kirupa.com/t/button-targets-new-window-instead-of-frame-help/255585/1 "2008-03-25T01:48:42Z")

</div>

I have a menu in one of the frames on my site, and when you press the different links, you should see the page in the mainFrame, but it just opens in a new window!

this is the frameset:

```auto
  
<frameset rows="140,*,65" cols="*" framespacing="0" frameborder="no" border="0">
    <frame src="bkTop.html" name="topFrame" noresize="noresize" id="topFrame" title="topFrame" />
    <frame src="bkHome.html" name="mainFrame" scrolling="yes" noresize="noresize" id="mainFrame" title="mainFrame" />
    <frame src="bkBottom.html" name="bottomFrame" noresize="noresize" id="bottomFrame" title="bottomFrame" />
</frameset>

```

and this is the AS for the menubuttons:

```php
on (release) {
getURL("bkWeb.html", "mainFrame");
} 

```

what can I have done wrong? I really need this to work asap!
