Forum Moderators: open
function makelink(){
if(document.all)
window.external.AddFavorite(url,title)
As far as I know, this function only works in MSIE.
Is there a similar function I can use in FireFox?
What about Opera, Netscape, and Safari, etc.?
Thank you in advance for your help!
Harris
Does anyone knew for certain that MSIE 7 will not support this function?
If this is true, I will need to modify the function so it will not fail in MSIE 7.
Also, I have read that Opera uses "Control T" instead of "Control D" for adding a bookmark.
Does anyone know if this is true?
Are there any other "major" browsers that do not use "Control D"?
Thank you for your help!
Harris
[code]
script type='text/javascript'>
<!--
var IEstring = "<a href='javascript:window.external.addFavorite"
IEstring += "(location.href,document.title);' title='Add to Favorites'>Favorites<\/a>" ;
var NSstring = "Click [Ctrl + D] ";
var OPstring = "Click [Ctrl + T]";
var OTHstring = "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');
var opAgent = app.indexOf('opera');
if (ieAgent!= -1) { whichString = IEstring; } else if (nsAgent!= -1){ whichString = NSstring; } else if (opAgent!= -1){whichString = OPstring; }
document.write(whichString)
-->
</SCRIPT>