How to display the Table of Contents with a link

I want to write in the home HTML page the following text (Table of contents). When the user clicks on it the left panel is opened and the table of contents is shown, exactly as it is the case with the table of contents button

First step: write the script
go to the Script Manager, double click on “UserMain” and copy/paste this code in the existing script:

procedure ShowTheToc;
 ShowLeftPanel(2, True);                

Click “Save Script” and now edit your HTML page. Insert the following HTML code:

<a href="hescript://UserMain.ShowTheToc">Table of contents</a>

And you can compile / run your project.

This topic was automatically closed after 24 hours. New replies are no longer allowed.