Do you mean make your page the user's home page when a link is clicked? Here's how to do that (and add to the bookmarks), but it will only work in IE I think:
Code:
<script type="text/javascript"><!--
function addToFavorites() {
if (window.external) window.external.AddFavorite(document.location.href, 'Title');
return false;
}
/*Makes your site the user's homepage*/
function setAsHomePage() {
this.style.behavior='url(#default#homepage)';
this.sethomepage(document.location.href);
return false;
}
//--></script>
<a href="#" onclick="return addToFavorites();">Bookmark</a> |
<a href="#" onclick="return setAsHomePage();">Home Page</a>
That will bookmark the current page. If you want to specify a particular location, change the text document.location.href in both functions to 'http://www.domain.com' (or whatever your site is).