Add to favorite link

I am having trouble making a link in flash that will add a web to favorites. I am not sure if am using the right code

<a href=“javascript:window.external.AddFavorite(location.href, document.title);”>
Add this Page to your Favorites</a>

or if am just doing it wrong. Could some please show me the steps. Thanks