<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 = "[Ctrl + D] to bookmark this page!"; 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');
Comments on Bookmark function does not seem to work
Forum Regular
Usergroup: Customer
Joined: Aug 05, 2005
Total Topics: 94
Total Comments: 272
the Bookmark function does not seem to work in Firefox. Can anyone confirm?
Forum Regular
Usergroup: Customer
Joined: Aug 09, 2004
Location: Chile
Total Topics: 172
Total Comments: 462
I confirm it working at IE,
but doesn't working at Firefox, Opera and Netscape.
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
Yes, it was IE-only. Thought about removing it or checking around for cross-browser bookmarking but haven't bothered.
Beginner
Usergroup: Customer
Joined: Oct 30, 2005
Total Topics: 2
Total Comments: 7
<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 = "[Ctrl + D] to bookmark this page!";
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');
if (ieAgent!= -1) {
whichString = IEstring;
} else if (nsAgent!= -1){
whichString = NSstring;
}
document.write("" + whichString + "")
</script>
This will work.
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
It's rather messy though, not sure it's worth cluttering a default template with.