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. Advertising

  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. Advertising

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:
    342
    =?Utf-8?B?Q2hhcmxlcw==?=
    Oct 6, 2004
  2. VB Programmer

    how click button to add to favorites?

    VB Programmer, Feb 27, 2006, in forum: ASP .Net
    Replies:
    2
    Views:
    561
    Bruce Barker
    Feb 28, 2006
  3. Replies:
    0
    Views:
    480
  4. shank

    add to favorites link

    shank, Aug 9, 2003, in forum: Javascript
    Replies:
    4
    Views:
    93
  5. mario faza

    add javascript too favorites

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

Share This Page