March 22, 2010

javascript bookmark code




<script language="javascript">

function addBookmark()

{

bookmarkurl = "http://www.simplysat.co.cc";

bookmarktitle="simplysat";

if (document.all)

window.external.AddFavorite(bookmarkurl,bookmarktitle)

else if ( window.sidebar ) {

window.sidebar.addPanel(bookmarktitle, bookmarkurl,"");

}

</script>



You can then place your bookmark link by adding an onClick function on your anchor tag like



<a href="javascript:bookmark('http://simplysat.co.cc/','simplysat');">Bookmark This Site</a>


Bookmark This Site