Click to See Complete Forum and Search --> : Adding to favourites....


red_of_rby
04-10-2003, 07:08 AM
Hi, I wonder if anyone can help me.....

I have the following code on my homepage.

<script>
function addbookmark()
{
bookmarkurl="http://members.tripod.com/red..blue..yellow/home.htm"
bookmarktitle="RED....BLUE....YELLOW - An Oxford Institute"
if (document.all)
window.external.AddFavorite(bookmarkurl,bookmarktitle)
}

</script>
<body onload="addbookmark()">

What I want it to be able to do is to only pop up if I don't already have the page bookmarked. I'm thinking a statement along the lines of

For all bookmarks
If bookmarkurl = "Url in favourites already looking at"
Then
Exit
Next bookmark

Pretty rubbish I think - can anyone help? Cheers rEd

pyro
04-10-2003, 07:26 AM
You've got to be kidding me, right? You want to automatically bookmark your page when people visit? How about giving me a link to the site, so I know to avoid it. :rolleyes:

red_of_rby
04-10-2003, 07:43 AM
No thats not what i want to do. What it does now is every time the page loads, the add to favourites window pops up - where u then click "ok" to bookmark it. What i want to do is only do that if it isn't already there.