That's not a very good script IMO because it will only work in IE. Here's a way to improve that:
Code:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!doctype html public "-//W3C//DTD XHTML 1.1 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1.1-strict.dtd" />
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US" dir="ltr">
<head>
<meta name="author" content="haxor41789" />
<meta http-equiv="content-type" content="application/xhtml+xml; charset=UTF-8" />
<script type="text/javascript">
function bookmark()
{
if((navigator.userAgent.toLowerCase()).indexOf("msie")!=-1)
{
window.external.AddFavorite("http://www.your.site.com","Your Site");
}
else
{
alert("This link will work only in Internet Explorer.");
}
}
</script>
</head>
<body>
<a href="javascript:bookmark();">Click here to bookmark this page.</a>
</body>
</html>
Bookmarks