Function: eww-top-url

eww-top-url is an interactive and byte-compiled function defined in eww.el.gz.

Signature

(eww-top-url)

Documentation

Go to the page marked top.

A page is marked top if rel="start", rel="home", or rel="contents" appears in a <link> or <a> tag.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/net/eww.el.gz
(defun eww-top-url ()
  "Go to the page marked `top'.
A page is marked `top' if rel=\"start\", rel=\"home\", or rel=\"contents\"
appears in a <link> or <a> tag."
  (interactive nil eww-mode)
  (let ((best-url (or (plist-get eww-data :start)
		      (plist-get eww-data :contents)
		      (plist-get eww-data :home))))
    (if best-url
	(eww-browse-url (shr-expand-url best-url (plist-get eww-data :url)))
      (user-error "No `top' for this page"))))