Forum Moderators: open
below is the script im currently using but i have to manually enter the address. i want to put the add to favorites link on a dynamic page so i want the address of the current page to be added to favourites.
<a href="javascript:window.external.AddFavorite('http://xyz.com/','xyz.com - home')" onMouseOver="MM_displayStatusMsg('click to add this page to your Favorites');return document.MM_returnValue" onMouseOut="MM_displayStatusMsg('');return document.MM_returnValue"><img src="images/favs.gif" width="16" height="16" border="0" align="middle">Add this page to your Favourites</a>
thnx for your help.
Josh.
yeh thats kinda what i want except that i want to be able to put the document.write handler within the javascript tag so that if a user clicks the add to favourites link on a dynamic page it will add that exact page to their favourites list, ie: my_page.php?id=001
i dont really know much about js so my apologies if this is a dumb question.
so what im after is this...
javascript:window.external.AddFavorite('http://js_inserts_page_url_here/','and_page_title_here')
also just wondering if theres an equivalent for this to add a bookmark for firefox/mozilla?
josh.