PC Review


Reply
Thread Tools Rate Thread

add/favorites

 
 
=?Utf-8?B?amFtZXM=?=
Guest
Posts: n/a
 
      25th Jan 2005
I cannot get a simple book mark to work
<a href="javascript:addbookmark()">Bookmark this site!</a>

Is this the right <head> code ?
<script language="JavaScript">

function addbookmark(){
if (document.all)
window.external.AddFavorite(bookmarkurl,bookmarktitle)
}

</script>
--
cause this is not workin
xp sp 2 why why why
 
Reply With Quote
 
 
 
 
Jens Peter Karlsen[FP MVP]
Guest
Posts: n/a
 
      25th Jan 2005
You are not calling the function correctly. As you can see it expects
two parameters and you don't supply any.
Try something like this:
<a href="javascript:addbookmark("http://www.mydomain.com/", "My cool
site")">Bookmark this site!</a>

function addbookmark(bookmarkurl,bookmarktitle){
if (document.all)
window.external.AddFavorite(bookmarkurl,bookmarktitle)
}

Regards Jens Peter Karlsen. Microsoft MVP - Frontpage.

> -----Original Message-----
> From: james [private.php?do=newpm&u=]
> Posted At: 25. januar 2005 16:09
> Posted To: microsoft.public.frontpage.client
> Conversation: add/favorites
> Subject: add/favorites
>
>
> I cannot get a simple book mark to work
> <a href="javascript:addbookmark()">Bookmark this site!</a>
>
> Is this the right <head> code ?
> <script language="JavaScript">
>
> function addbookmark(){
> if (document.all)
> window.external.AddFavorite(bookmarkurl,bookmarktitle)
> }
>
> </script>
> --
> cause this is not workin
> xp sp 2 why why why
>


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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
Show favorites as multiple columns - Start/Favorites =?Utf-8?B?U2Ftc2h1bg==?= Windows XP Help 4 18th Mar 2006 10:25 AM
show favorites as multiple columns - Start/Favorites =?Utf-8?B?U2Ftc2h1bg==?= Windows XP General 1 17th Mar 2006 07:54 AM
anti-spyware beta caused my favorites to default to another user's favorites AllenH Spyware Discussion 2 4th Jun 2005 05:54 PM
ie favorites disappeared ,contents of windows folder in favorites window kay Windows XP Internet Explorer 1 17th Apr 2004 03:04 AM
Earthlink favorites override my original favorites folder Jane Windows XP Internet Explorer 6 24th Feb 2004 03:05 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:42 PM.