code: function onAnchorClick(e) {
      var event = e || global.event;
      var target = anchorTarget(event.target || event.srcElement);
      var defaultPrevented = "defaultPrevented" in event ? event['defaultPrevented'] : event.returnValue === false;
      if (target && target.nodeName === "A" && !defaultPrevented) {
        var current = parseURL();
        var expect = parseURL(target.getAttribute("href", 2));
        var isEqualBaseURL = current._href.split('#').shift() === expect._href.split('#').shift();
        if (isEqualBaseURL && expect._hash) {
          if (current._hash !== expect._hash) {
            locationObject.hash = expect._hash;
          }
          scrollToAnchorId(expect._hash);
          if (event.preventDefault) {
            event.preventDefault();
          } else {
            event.returnValue = false;
          }
        }
      }
    }
docs: Handles anchor elements with a hash fragment for non-HTML5 browsers
  
  @param {Event} e