Solved

Add to favorites (favourites)

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
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…
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

708 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

13 Experts available now in Live!

Get 1:1 Help Now