add to favorites without pull down menu!

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am not trying to pull off some crap, like adding porn to someone's favorites, but a statement with code that adds homepage to favorites without going through the pull down/ add to favorites routine.
 
If you add a link in your website such as "Bookmark this site" and link it
to the following code, it will add the page to the favourites list.

<script language=JavaScript1.2>
//configure the two variables below to match yoursite's own info
var bookmarkurl="http://www.yoursite.com"
var bookmarktitle="The title of your home page"

function addbookmark(){
if (document.all)
window.external.AddFavorite(bookmarkurl,bookmarktitle)
}

</script>

You then link the bookmark URL with the following:
<a href="javascript:addbookmark()">Bookmark this site!</a>

Hope this helps.
Martin


jimmydee said:
I am not trying to pull off some crap, like adding porn to someone's
favorites, but a statement with code that adds homepage to favorites without
going through the pull down/ add to favorites routine.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Favorites Don't Display 2
Sorting favorites 4
Favorites and links 3
can't add to favorites list 1
Inactive Favorites Menu 4
My Favorites folder 2
ie favorites menu is gone!! 1
Importing Favorites 1

Back
Top