Add to favorites

Discussion in 'Javascript' started by Andrew Banks, Aug 19, 2003.

  1. Andrew Banks

    Andrew Banks Guest

    Can anyone tell me why the following link isn't working for me?

    <a
    href="javascript:window.external.AddFavorite(http://www.bwd-securities.co.uk
    ,BWD Securities PLC);">link</a>
     
    Andrew Banks, Aug 19, 2003
    #1
    1. Advertisements

  2. Andrew Banks wrote:
    > Can anyone tell me why the following link isn't working for me?
    >
    > <a
    > href="javascript:window.external.AddFavorite(http://www.bwd-securities.co.uk
    > ,BWD Securities PLC);">link</a>


    You need quotes around a string
    <a href="#"
    onclick="if (window.external && window.external.AddFavorite)
    window.external.AddFavorite('http:...', 'BWD ...');
    return false;"



    --

    Martin Honnen
    http://JavaScript.FAQTs.com/
     
    Martin Honnen, Aug 19, 2003
    #2
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?Q2hhcmxlcw==?=

    I need ideas about handling bookmarks (favorites) in web app

    =?Utf-8?B?Q2hhcmxlcw==?=, Oct 6, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    450
    =?Utf-8?B?Q2hhcmxlcw==?=
    Oct 6, 2004
  2. Jordan

    Adding a "Favorites" icon

    Jordan, May 28, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    615
    John Timney \(ASP.NET MVP\)
    May 28, 2005
  3. Alex D.
    Replies:
    8
    Views:
    2,361
    Alex D.
    Sep 14, 2005
  4. clintonG
    Replies:
    4
    Views:
    467
    Kevin Spencer
    Oct 4, 2005
  5. VB Programmer

    how click button to add to favorites?

    VB Programmer, Feb 27, 2006, in forum: ASP .Net
    Replies:
    2
    Views:
    640
    Bruce Barker
    Feb 28, 2006
  6. Replies:
    0
    Views:
    555
  7. shank

    add to favorites link

    shank, Aug 9, 2003, in forum: Javascript
    Replies:
    4
    Views:
    185
  8. mario faza

    add javascript too favorites

    mario faza, Jun 24, 2005, in forum: Javascript
    Replies:
    0
    Views:
    145
    mario faza
    Jun 24, 2005
Loading...