Back To Top (using a "Jump" button) -
An example of using the userData CSS Behavior to pass data
between topics in a CHM.
Each topic runs the fnSetUrl function in its onload event which stores the current topic
filename (URL) in a UserData store. When the user clicks the "Jump 1" button
(defined to point to the "back.htm" file), the back.htm file runs the fnBackToTop function
which extracts the URL from the UserData store and displays that topic.
This results in the appearance of scrolling to the top of the current file (a "TOP" anchor
is not needed).
This example contains a working CHM and source files.
download backtotop.zip v.1.00 [7.0KB]