I need some HTML help please

While browsing the internet, I came across a site that allowed me to set my home page to the page, or add that page to my favorites. I was wondering how I could add something like this to my site.

For reference, this is the site:
Crossword Dictionary

[A HREF=“javascript:window.external.AddFavorite(‘http://mysite.com/’, ‘My Site’)”]Add To Favorites[/A]

[A HREF=“javascript:this.setHomePage(‘http://mysite.com/’)”]Set My Site As Your Home Page[/A]

No wonder I couldn’t figure it out. I never would have thought of using Java >_>