# Problem with Links,Target Frames

**URL:** <https://forum.kirupa.com/t/problem-with-links-target-frames/266781>\
**Category:** Uncategorized\
**Created:** [July 24, 2008, 10:10am UTC](https://forum.kirupa.com/t/problem-with-links-target-frames/266781 "2008-07-24T10:10:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![armen\_shlang](https://avatars.discourse-cdn.com/v4/letter/a/74df32/32.png) [@armen\_shlang](https://forum.kirupa.com/u/armen_shlang)\
**Post date:** [July 24, 2008, 10:10am UTC](https://forum.kirupa.com/t/problem-with-links-target-frames/266781/1 "2008-07-24T10:10:54Z")

</div>

So i have a two framed website, in the top frame is an html file with the swf file in it. The swf file contains a link to a page that I want it to open in the bottom frame.  
This is the code I used which doesn;t work.

```auto

function onClick(event:MouseEvent):void
{
    navigateToURL(link,"mainFrame");
}

```

I tried everything. The \_top argument works fine. i tried \_parent but that opens a blank document. Im I missing a step?
