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