By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,605 Members | 2,128 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,605 IT Pros & Developers. It's quick & easy.

javascript to add bookmark

P: n/a
Hi,

I wanted to write a script that'd add the current URL to the user's
list of bookmarks (Favorites). I found the following script which works
for IE:
document.write (''
+'<a onMouseOver="self.status=\'Bookmark this site\'" '
+' onMouseOut="self.status=\'\'" '
+' href="javascript:window.external.AddFavorite'
+'(\'http://www.JavaScripter.net/faq/\','
+'\'JavaScripter.net FAQ\')">'
+'Click here to bookmark this site</a>.')

Needless to say, it doesn't work for Firefox/Mozilla. Is anyone aware
of a work-around for other browsers?

thanks
Nagender

Sep 22 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Lee
nk******@gmail.com said:

Hi,

I wanted to write a script that'd add the current URL to the user's
list of bookmarks (Favorites). I found the following script which works
for IE:
document.write (''
+'<a onMouseOver="self.status=\'Bookmark this site\'" '
+' onMouseOut="self.status=\'\'" '
+' href="javascript:window.external.AddFavorite'
+'(\'http://www.JavaScripter.net/faq/\','
+'\'JavaScripter.net FAQ\')">'
+'Click here to bookmark this site</a>.')

Needless to say, it doesn't work for Firefox/Mozilla. Is anyone aware
of a work-around for other browsers?


<p>Why not bookmark this site?</p>

If they can't figure out how to do that, what makes you think they'll be able to
figure out how to use bookmarks?

Sep 22 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.