Add To Favorites

How do i add the URL of my website into the favorites by clicking on the special link on my website. Please give me the codings.

note: This feature can be found in your browser under the favorites menu.

regards

Eugene

eugene007Asked:
Who is Participating?
 
chterilConnect With a Mentor Commented:
for IE you can try:
<script>
function addtofav(){
window.external.AddFavorite(your url,your site name);
}
</script>

<input type=button onclick='addtofav()'>


for Netscape: only do ctrl-D
0
 
Le_RonCommented:
You could also have done :

<a href="http://www.hotmail.com" onClick='window.external.AddFavorite("http://www.hotmail.com","test")'>hotmail</a>
0
 
knightEknightCommented:
or even:

<A href="http://www.hotmail.com/" onClick='window.external.AddFavorite(this.href,"test");return(true);'>hotmail</a>

____________________________________________________________________________________________
0
 
eugene007Author Commented:
I accept everyones answer..:)
Thanks..:)

Regards
Eugene
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.