# (Rather Urgent) Can't load page in Iframe on local computer

**URL:** <https://forum.kirupa.com/t/rather-urgent-cant-load-page-in-iframe-on-local-computer/213016>\
**Category:** flash\
**Created:** [January 16, 2007, 12:18pm UTC](https://forum.kirupa.com/t/rather-urgent-cant-load-page-in-iframe-on-local-computer/213016 "2007-01-16T12:18:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![arckodrazen](https://avatars.discourse-cdn.com/v4/letter/a/e95f7d/32.png) [@arckodrazen](https://forum.kirupa.com/u/arckodrazen)\
**Post date:** [January 16, 2007, 12:18pm UTC](https://forum.kirupa.com/t/rather-urgent-cant-load-page-in-iframe-on-local-computer/213016/1 "2007-01-16T12:18:03Z")

</div>

Hi guys

I’m having a problem with flash/javascript/iframes. I have a flash banner that is positioned at a fixed position on the bottom of the screen. When I press a button on the banner, the page (which is an iframe) should change.

I got it to work using javascript. But it only works on the Internet. On my local computer it doesn’t work. No error, nothing. **Please mind that it is a task for school (for my exams) so it should work only locally.**

Check out: [http://www.arckodrazen.com/neher](http://www.arckodrazen.com/neher) and click on “Vanille”, the page should change.

My codes:

Actionscript:

```auto

mc_vanille_over.onRelease = function(){
    getURL("javascript:test();")
}

```

javascript:

```auto

        <script type="text/javascript">
            function test(){
                frames['mainframe'].location.href = 'vanille.html';
            }
        </script>

```

Iframe:

```auto

        <iframe name="mainframe" src="madagascar.html" scrolling="no"></iframe>

```

So, how do i solve this Internet vs Local issue?
