Add to Favourites!

They have: 296 posts

Joined: Sep 1999

Ok I know this is an old one but can anyone remind me how to make a url that adds your page to the users favourites when clicking on the link?

Thanks People!

~Vy~

They have: 850 posts

Joined: Jul 1999

code:

<SCRIPT LANGUAGE="JavaScript">
if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4)) {

var url="http://www.yoursite.com";
var title="title of your site";

document.write('<A HREF="javascript:window.ext');
document.write('ernal.AddFavorite(url,title);" ');
document.write('onMouseOver=" window.status=');
document.write("'Add this site to your favorites!'; return true ");
document.write('"onMouseOut=" window.status=');
document.write("' '; return true ");
document.write('">Add this site to your favorites!</a>');
}
else {
var msg = "Don't forget to bookmark us!";
if(navigator.appName == "Netscape") msg += "  (CTRL-D)";
document.write(msg);
}
</script>


[/code]

------------------
Due to precipitation, for a few weeks K2 is bigger than Mount Everest. 

They have: 47 posts

Joined: Jan 2000

That is a valid script, but it will not work in Netscape (not even in version 4).

Eugene Grinberg http://www.interprosolution.com
FREE Tools and Services for Webmasters

They have: 296 posts

Joined: Sep 1999

Excellent!!

thanks a lot Robp!

~Vy~

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.