Question : Bookmark page javascript. Add to favorites script

Dear Experts,
do you know any javascript which adds to favorites and works fine with both Explorer and Firefox?
I use this one but it doesn't work with Firefox..

<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function bookmark()
{
bookmarkurl="http://www.mywebsite.com"
bookmarktitle="Title"
if (document.all)
window.external.AddFavorite(bookmarkurl,bookmarktitle)
}
// End -->
</script>

<a href="javascript:bookmark()"><img src="img/favorite.gif"  /></a>

Answer : Bookmark page javascript. Add to favorites script

Microsoft has 'tightened' up Windows 7 (as well as Office 2010).  Some things that used to work (perhaps coded a little sloppy) don't anymore.

Make sure every thing you've dim'd as an object is closed and set to = NOTHING when finished with it.

dim s as someobject
set s = thisobject
'--- when done
set s = nothing

dim db as dao.database
set db = somedatabase
'---- when done
db.close
set db = nothing

Scott C
Random Solutions  
 
programming4us programming4us