Solved

Add to favorites (favourites)

Posted on 2011-09-02
3
243 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

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

Suggested Solutions

SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…

803 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