Need Javascript help for a simple thing

by Poglia
3 replies
  • |

I would like to make a link/button that adds the site to favorites/bookmarks. I have searched on Google and tried like 10 different scripts, but no one works with both IE and Firefox. I have even tried to edit them (I know a bit of HTML, JavaScript, etc) but with no luck.

I would like one that works for all browsers (detects browser type when the page is loaded, then write the code for the appropriate link/button).

Can anyone help me? Thanks!
#javascript #simple #thing
  • Profile picture of the author pdjsolutions
    <a href="javascript:bookmarksite('eBookMasters', '')">Bookmark this website</a>

    I think this should work in both the browsers, give it a try
    {{ DiscussionBoard.errors[926772].message }}
    • Profile picture of the author Poglia
      Thanks for the answer, but your code just calls the function "bookmarksite". I need the actual function, like:

      <script type="text/javascript">

      function bookmarksite {
      // What I need is here


      {{ DiscussionBoard.errors[927150].message }}
  • Profile picture of the author Poglia
    Nevermind, I have solved the problem. Thanks anyway.

    {{ DiscussionBoard.errors[927240].message }}

Trending Topics