Add to Favorites Button (IE) using Javascript

Add to Favorites Button (IE) using Javascript

Using javascript we can providing our visitors with a way to add our web site to their favorite places.

We can place the following JavaScript code in our sites. So that by clicking “Add to favorites” button, users can easily the site into their favorites.a button on your site that, when clicked on, will add your web site to your visitors favorites. We can place the following code where we would like the button to appear in our site.

<FORM>
<INPUT TYPE=”button” VALUE=”Add to Favorites” onClick=’window.external.AddFavorite(location.href, document.title);’>
</FORM>

Leave a Reply

You must be logged in to post a comment.


All material @ copyrighted by chrisranjana.com. If you want to link to this article you are welcome to do so. Unauthorized publication is strictly prohibited. This developer tutorial website contains articles by Php programmers , Software developers, Mysql programmers and asp c# programmers. This website also contains ajax tutorials and advanced mysql sql stored procedures and functions tutorials and sample codes.