The move function on its own is of no use -- we need to be able to call it from one of the frames. Hypertext links default to the HTTP protocol to reference another document, but they can call other protocols as well. For example, a link to an FTP download can be created using the following syntax:
<a href="ftp://FTPsite.com.au/thedownload.tar.gz>FTP</a>
Although it's not really a protocol, JavaScript-enabled browsers allow you to specify JavaScript as a protocol to reference the JavaScript elements contained in your documents. The Previous and Next links could be implemented to call the move function by using the JavaScript protocol in the href:
<a href="JavaScript:parent.move(-1);">Previous</a> page <br><a href="JavaScript:parent.move(1); ">Next</a> page
The parent property specifies that the move function is found in the parent document. Depending upon whether you are moving forwards or backwards through the pages, the function is called with either an argument of 1 or -1.