?
Solved

Add to favorites (favourites)

Posted on 2011-09-02
3
Medium Priority
?
270 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 17

Accepted Solution

by:
OmniUnlimited earned 2000 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
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…
The viewer will learn the basics of jQuery including how to code hide show and toggles. 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…

770 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