code: function(element, base, options) {
          if (element !== null && typeof element == 'object' && !OpenLayers.Util.isElement(element)) {
              options = element;
              this.base = document.location.href;
              OpenLayers.Control.prototype.initialize.apply(this, [options]);
              if (this.element != null) {
                  this.element = OpenLayers.Util.getElement(this.element);
              }
          }
          else {
              OpenLayers.Control.prototype.initialize.apply(this, [options]);
              this.element = OpenLayers.Util.getElement(element);
              this.base = base || document.location.href;
          }
      }
docs: Constructor: OpenLayers.Control.Permalink
  
  Parameters:
  element - {DOMElement}
  base - {String}
  options - {Object} options to the control.
  
  Or for anchor:
  options - {Object} options to the control.