Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > Add to favorites

Reply
Thread Tools

Add to favorites

 
 
Andrew Banks
Guest
Posts: n/a
 
      08-19-2003
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>


 
Reply With Quote
 
 
 
 
Martin Honnen
Guest
Posts: n/a
 
      08-19-2003


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/

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Cant add to Favorites Jeff Strickland Computer Information 0 08-17-2008 09:24 PM
asp.net add to favorites script discountonall@gmail.com ASP .Net 0 08-08-2006 02:16 AM
how click button to add to favorites? VB Programmer ASP .Net 2 03-04-2006 06:22 PM
how click button to add to favorites? VB Programmer ASP .Net 2 02-28-2006 12:33 AM
Add to favorites taywood Computer Support 1 09-14-2004 08:43 AM



Advertisments