Forum Moderators: phranque

Message Too Old, No Replies

Add to favorites button?

         

Livenomadic

3:42 pm on Feb 15, 2005 (gmt 0)

10+ Year Member



I was wondering if anyone knew how to make a add to favoriate button in javascript, xhtml, or php.

Thanks

limbo

3:47 pm on Feb 15, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Try this in the head:
<script type="text/javascript">
var bookmarkurl="http://www.yoursitehere.com"
var bookmarktitle="Your Site Title"
function addbookmark(){
if (document.all)
window.external.AddFavorite(bookmarkurl,bookmarktitle)
}
</script>

& this in the body:

<a href="javascript:addbookmark()">Add this site to your favourites</a>

<added> - only tested in IE