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.