JavaScript enhancements
Some SCO documentation HTML files include a few lines of
JavaScript code to fix a couple of limitations in Netscape 3.0.
These limitations are:
-
Frames do not keep separate history lists.
This makes navigating in two frames difficult.
-
Netscape does not support the HTML <LINK rel=contents>
element that lets the browser automatically help the user find
the table of contents for a particular file.
The following lines of JavaScript code placed in the <HEAD> element
of each HTML file overcome these limitations:
<SCRIPT LANGUAGE=JavaScript>
<!--
var Contents = "/topicID/CONTENTS.html"
if ( parent.RightHistory != null ) parent.RightHistory(document.URL)
// -->
</SCRIPT>
-
The Contents variable provides a URL
to the table of contents file,
which will appear in the left frame when the user clicks on
the Contents button.
-
The RightHistory code adds the document to the
right-frame history implemented in JavaScript.
-
Replace RightHistory with LeftHistory
for table of contents (CONTENTS.html) files.
Next topic:
HTML tables
Previous topic:
HTML 3.2 extensions
© 1999 The Santa Cruz Operation, Inc. All rights reserved.
UnixWare 7 Release 7.1.1 - 5 November 1999