code: public function getBaseUrl()
      {
          if (is_integer($this->focus)) {
              $url = $this->frames[$this->focus]->getBaseUrl();
          } else {
              $url = $this->frameset->getBaseUrl();
          }
  
          return $url;
      }
docs: Page base URL.
  
  @return SimpleUrl        Current url.