Forum Moderators: phranque
Have used the one shown below for sometime now and seems to give something worthwhile in all browsers.
Would like to correctly atribute it, but can't remember where I got it from.
<script type="text/javascript">
var IEstring = "<a class='nav2' href='javascript:window.external.AddFavorite"
IEstring += "(location.href,document.title);'>Bookmark this page<\/a>" ;
var NSstring = "Click [Ctrl + D] to bookmark this page!";
var OTHstring = "Remember to bookmark this page!"
var whichString = OTHstring ;
var agt = navigator.userAgent.toLowerCase();
var app = navigator.appName.toLowerCase();
var ieAgent = agt.indexOf('msie');
var nsAgent = app.indexOf('netscape');
if (ieAgent!= -1) {
whichString = IEstring;
} else if (nsAgent!= -1){
whichString = NSstring;
}
document.write("" + whichString + "")
</script>