# Context Menu issues with bookmark script

**URL:** <https://forum.kirupa.com/t/context-menu-issues-with-bookmark-script/187100>\
**Category:** flash\
**Created:** [April 26, 2006, 5:56pm UTC](https://forum.kirupa.com/t/context-menu-issues-with-bookmark-script/187100 "2006-04-26T17:56:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hogfish](https://avatars.discourse-cdn.com/v4/letter/h/b19c9b/32.png) [@hogfish](https://forum.kirupa.com/u/hogfish)\
**Post date:** [April 26, 2006, 5:56pm UTC](https://forum.kirupa.com/t/context-menu-issues-with-bookmark-script/187100/1 "2006-04-26T17:56:55Z")

</div>

I have a context menu I am working on. I am trying to add a me nu Item that when pressed it will bookmark the site in IE or Firefox.

This is what I have, but it is not working in either IE of FireFox

var myContxtMenu = new ContextMenu(); // myContxt will serve as our Context Menu object name

myContxtMenu.hideBuiltInItems();

\_root.menu = myContxtMenu;

var item1:ContextMenuItem = new ContextMenuItem (“Bookmark”, markIt, true);  
myContxt.customItems[0] = item1;

function markIt () {  
getURL (“javascript:window.external.AddFavorite(‘[http://www.freedomland.com/’,'FL](http://www.freedomland.com/','FL)’);”);  
}
