/chrome/community?hl=en
/chrome/community?hl=en
1/19/17
Original Poster
amith natikar

Can we add a bookmark in chrome browser pro-grammatically using Javascript ?

The below code is working fine for Intrnet Explorer but not for the chrome.

if(isMSIEUserAgent() || isIEUserAgent()) {
window.external.AddFavorite(url, label);
}

Any solutions for this adding bookmark or fevorite in Chrome programmatically.
Community content may not be verified or up-to-date. Learn more.
All Replies (6)
Rong Jie
1/19/17
Rong Jie
Hi Amith,

Such API is only available for Chrome extension, otherwise malicious website can manipulate user data too easily. Please see developer.chrome.com/extensions/

Cheers,
Rong Jie
1/19/17
Original Poster
amith natikar
Hi Rong Jie

You suggesting add as an extension right ? But that should be an addon. I need to add my url as a bookmark in chrome.

thanks,
Amith
Rong Jie
1/19/17
Rong Jie
Let me repeat this: Chrome does not expose JavaScript APIs to normal websites to manage Chrome (manage bookmarks, user data, settings etc.). Only Chrome extension has access to these APIs.

Personally, I doubt if it is a good idea for Internet Explorer to expose such APIs to websites. Also, you can't do that with Microsoft Edge.
1/19/17
Original Poster
amith natikar
Yes you are right it is not possible with Edge browser and even Opera browser also not allowing this. In many blogs they suggested that it not possible in Chrome as it is a security issue..

thanks Rong, if you got any resolution that we can add bookmarks securely please let me know.

1/19/17
Original Poster
amith natikar
Is there any privilege that from the extensions can we access the bookmarks through scripting. ?
Rong Jie
1/19/17
Rong Jie
Normal websites can't communicate with or affect Chrome extension, but Chrome extension can manipulate and in-cooperate with normal websites. Consider it a one-way connection. You will have to develop your own Chrome extension, publish it to Chrome Web Store and ask your user to install it.
Were these replies helpful?
How can we improve them?
 
This question is locked and replying has been disabled. Still have questions? Ask the Help Community.

Badges

Some community members might have badges that indicate their identity or level of participation in a community.

 
Expert - Google Employee — Googler guides and community managers
 
Expert - Community Specialist — Google partners who share their expertise
 
Expert - Gold — Trusted members who are knowledgeable and active contributors
 
Expert - Platinum — Seasoned members who contribute beyond providing help through mentoring, creating content, and more
 
Expert - Alumni — Past members who are no longer active, but were previously recognized for their helpfulness
 
Expert - Silver — New members who are developing their product knowledge
Community content may not be verified or up-to-date. Learn more.

Levels

Member levels indicate a user's level of participation in a forum. The greater the participation, the higher the level. Everyone starts at level 1 and can rise to level 10. These activities can increase your level in a forum:

  • Post an answer.
  • Having your answer selected as the best answer.
  • Having your post rated as helpful.
  • Vote up a post.
  • Correctly mark a topic or post as abuse.

Having a post marked and removed as abuse will slow a user's advance in levels.

View profile in forum?

To view this member's profile, you need to leave the current Help page.

Report abuse in forum?

This comment originated in the Google Product Forum. To report abuse, you need to leave the current Help page.

Reply in forum?

This comment originated in the Google Product Forum. To reply, you need to leave the current Help page.