The PDF format also knows link annotations with named actions, which calls functions of the PDF viewer. The official list of these named actions in the PDF specification for version 1.7 (ISO standard version) is quite short:
NextPage, PrevPage
FirstPage, LastPage
However, the list supported by AcrobatReader is much longer. Section "5 Acrobat-specific behavior" of the hyperref manual lists some more named actions, among them:
The GoBack action is of interest here. With macro
\Acrobatmenu{<action name>}{<free text>}
a link for going back can be set, for example:
\documentclass[a5paper]{article}
\usepackage[colorlinks]{hyperref}
\usepackage{lipsum}
\usepackage[variablett]{lmodern}
\newcommand*{\Button}[1]{%
\Acrobatmenu{#1}{\fbox{\texttt{#1}}}%
}
\newcommand*{\Navigation}{%
\begin{center}
\Button{FirstPage}\qquad
\Button{LastPage}\\
\Button{PrevPage}\qquad
\Button{NextPage}\\
\Button{GoBack}\qquad
\Button{GoForward}
\end{center}%
}
\begin{document}
\tableofcontents
\Navigation
\section{Document start}
\lipsum[1-3]
\Navigation
\section{Last section}
\lipsum[4]
\Navigation
\end{document}
Of course, it depends on the PDF viewer, whether actions and which actions are aupported. AR should work, xpdf 3.03 knows the actions of the test file above.
Evince 3.4.0 only knows the actions from the PDF specification, but not GoBack or GoForward.