By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
460,043 Members | 1,144 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 460,043 IT Pros & Developers. It's quick & easy.

How to add bookmark to safari using JavaScript?

P: 1
Hi Team,

Requirement is to add a fixed url, (e.g. http://facebook.com) as bookmark to safari - browser on click of a hyperlink.


For Example: Following works in IE and Firefox but does nto work in Safari.


Expand|Select|Wrap|Line Numbers
  1. <a href="javascript:if(document.all)window.external.AddFavorite('http://facebook.com','facebook'); else if(window.sidebar)window.sidebar.addPanel ('facebook','http://facebook.com','');">bookmark    http://safari.com</a>
  2.  
I found that many other developers have same requirement but no solution.

Can someone atleast confirm if it is not possible in the current safari version?

Thanks,
Sachin
May 23 '12 #1
Share this Question
Share on Google+
1 Reply


acoder
Expert Mod 15k+
P: 16,027
As far as I can tell, no, it isn't possible.

Adding a bookmark can be done by a simple click in most browsers, so these bookmarking scripts are for the most part redundant.
May 23 '12 #2

Post your reply

Sign in to post your reply or Sign up for a free account.