title: Add to browser favorites/bookmarks from JavaScript but for all browsers (mine doesn't work in Chrome)?
body: <p>Can anyone help, I am using the following for adding a bookmark to IE and Firefox but its not working in Chrome and I don't get my error msg saying "not supported" either..</p>
  
  <p>Anybody know of a good script to support ALL browsers or at least to come back and tell me its not supported,  I have access to jQuery - maybe there is some way to detect the browser</p>
  
  <p>I am currently using this and it works for IE and Firefox but not chrome</p>
  
  <pre><code>if (window.sidebar) { // Mozilla Firefox
      window.sidebar.addPanel(name, url, "");
  }
  else if (window.external) { // IE
      window.external.AddFavorite(url, name);
  }
  else if (window.opera &amp;&amp; window.print) {
      window.external.AddFavorite(url, name);
  }
  else {
      alert('not supported');
  }
  </code></pre>