Solved

Add to favorites (favourites)

Posted on 2011-09-02
3
248 Views
Last Modified: 2012-06-21
Dear Experts

I am looking for some code that will add a page to favourites.  Most importantly the page is not the current page.  I have been trying to adapt this piece of code:

<INPUT TYPE="button" VALUE="Add to Favorites" onClick='window.external.AddFavorite(location.href, document.title);'>

but cannot seem to get it to work & woudl like to add the following site "www.bbc.co.uk" with a name of BBC

Can anybody help?
0
Comment
Question by:correlate
  • 2
3 Comments
 
LVL 17

Accepted Solution

by:
OmniUnlimited earned 500 total points
ID: 36472631
Are you telling me that you tried:
 
<INPUT TYPE="button" VALUE="Add to Favorites" onClick='window.external.AddFavorite("http://www.bbc.co.uk/", "BBC");'>

Open in new window


And it didn't work?  (Remember, this code only works in IE).
0
 

Author Closing Comment

by:correlate
ID: 36472721
brilliant - thank you, I did try that a few time, but must have missed a bit - works now - thank you
0
 
LVL 17

Expert Comment

by:OmniUnlimited
ID: 36472754
You are welcome.
0

Featured Post

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Showing your events from Google Calendar in Google Maps Why? I travel all week and I thought it would be ideal if staff in office knew where I was based on my calendar. (OK real reason: my son wanted to see where I would be working, and I thoug…
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question