# Add to favorites code in Flash button

**URL:** <https://forum.kirupa.com/t/add-to-favorites-code-in-flash-button/28820>\
**Category:** flash\
**Created:** [August 19, 2003, 12:53am UTC](https://forum.kirupa.com/t/add-to-favorites-code-in-flash-button/28820 "2003-08-19T00:53:56Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Brown0209](https://avatars.discourse-cdn.com/v4/letter/b/e495f1/32.png) [@Brown0209](https://forum.kirupa.com/u/Brown0209)\
**Post date:** [August 19, 2003, 12:53am UTC](https://forum.kirupa.com/t/add-to-favorites-code-in-flash-button/28820/1 "2003-08-19T00:53:56Z")

</div>

Does anyone know the code I can place  
on a button in Flash to allow the user  
to add my website to their favorites???

Will it work in IE and Netscape???

Thanks =)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 19, 2003, 1:34am UTC](https://forum.kirupa.com/t/add-to-favorites-code-in-flash-button/28820/2 "2003-08-19T01:34:15Z")

</div>

```auto
on (release) {
        getURL("java_script:window.external.AddFavorite('URL',TITLE')");
}

```

Just fill in the URL of your site and change “TITLE” to whatever you want to appear in the user’s favorite’s menu.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 19, 2003, 1:38am UTC](https://forum.kirupa.com/t/add-to-favorites-code-in-flash-button/28820/3 "2003-08-19T01:38:47Z")

</div>

Make your button and put the actions in it: The actions are in the text file because you cant type in javascript commands on this board (filtered out).

The first part is the URL (‘[freddythunder.com](http://freddythunder.com)’)  
and the second part is the title that will be recorded in the favorites list (‘the best website ever’)  
Hope that helps!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 19, 2003, 1:44am UTC](https://forum.kirupa.com/t/add-to-favorites-code-in-flash-button/28820/4 "2003-08-19T01:44:02Z")

</div>

Drat - beat me Egeek!! If I didn’t go through the whole text file…grrr. :trout:!!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 19, 2003, 2:21am UTC](https://forum.kirupa.com/t/add-to-favorites-code-in-flash-button/28820/5 "2003-08-19T02:21:00Z")

</div>

topic brought up a week or two ago, remember to search first Brown0209 😉

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 19, 2003, 3:17am UTC](https://forum.kirupa.com/t/add-to-favorites-code-in-flash-button/28820/6 "2003-08-19T03:17:23Z")

</div>

Sorry =(  
But thanks =)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 19, 2003, 4:17am UTC](https://forum.kirupa.com/t/add-to-favorites-code-in-flash-button/28820/7 "2003-08-19T04:17:26Z")

</div>

It doesnt work on Netscape though.
