when dragging a link to the bookmarks bar, the url is changed, but the url on the bookmarks bar is reflecting the old state
<p>As the title suggests, when dragging a link to the bookmarks bar, the url is changing through a jquery call, but the url on the bookmarks bar is reflecting the old state, that is an empty string, how would you go about making sure that the bookmark contains the updated link? </p>

<pre><code>  $("#button")
  .mousedown(function() {
    $(window).mousemove(function() {
      isDragging = true;
      $(window).unbind("mousemove");
      $("#button").attr("href", "http://localhost:80");                                                                                                               
      }); 
  })  
  }); 
</code></pre>
