hungoveragain
asked on
Javascript Add to Bookmarks link
Can someone please let me know how I can get the following script to work in chrome?
function bookmark(url,title){
if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVer sion) >= 4)) {
window.external.AddFavorit e(url,titl e);
} else if (navigator.appName == "Netscape") {
window.sidebar.addPanel(ti tle,url,"" );
} else {
alert("Press CTRL-D (Netscape) or CTRL-T (Opera) to bookmark");
}
}
<a href="#" onclick="Javascript:bookma rk('http://www.mysite.com/', 'Some Title')"><img alt="Add to favorites" src="http://www.myslte.com/images/favorites_bookmark.png" height="20" width="20"></a>
it works fine in firefox and IE.
Thanks
Mike
function bookmark(url,title){
if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVer
window.external.AddFavorit
} else if (navigator.appName == "Netscape") {
window.sidebar.addPanel(ti
} else {
alert("Press CTRL-D (Netscape) or CTRL-T (Opera) to bookmark");
}
}
<a href="#" onclick="Javascript:bookma
it works fine in firefox and IE.
Thanks
Mike
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.