Solved

Add to favorites (favourites)

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
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…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

914 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now