# Set as Home Page Flash button

**URL:** <https://forum.kirupa.com/t/set-as-home-page-flash-button/175301>\
**Category:** flash\
**Created:** [January 13, 2006, 8:17am UTC](https://forum.kirupa.com/t/set-as-home-page-flash-button/175301 "2006-01-13T08:17:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stiakooo](https://avatars.discourse-cdn.com/v4/letter/s/ac91a4/32.png) [@Stiakooo](https://forum.kirupa.com/u/Stiakooo)\
**Post date:** [January 13, 2006, 8:17am UTC](https://forum.kirupa.com/t/set-as-home-page-flash-button/175301/1 "2006-01-13T08:17:12Z")

</div>

Hello!  
I have flash header with several buttons. One of these button should set the page as Homepage in IE.  
I have the following javascript function:

```auto
<SCRIPT LANGUAGE="JavaScript">
function homePage()
{
this.style.behavior='url(#default#homepage)';
this.setHomePage(location.href);
}
</script>

```

In Flash:  
ActionScript Code:  
[FONT=Courier New][LEFT][COLOR=#0000FF]on[/COLOR]COLOR=#000000[/COLOR][COLOR=#000000]{[/COLOR]  
[COLOR=#0000FF]getURL[/COLOR]COLOR=#000000[/COLOR];  
[COLOR=#000000]}[/COLOR]  
[/LEFT]  
[/FONT]

But this doesn’t work. Please help!  
Thanks!
