### Invoking the action from HTML

To include active help links in your documentation, you must first declare the use of the active help JavaScript in the HEAD tag of your HTML:

     <script language="JavaScript" src="../../org.eclipse.help/livehelp.js> </script>

The live help JavaScript is located in the org.eclipse.help plug-in. You can refer to it using the help system's cross plug-in referencing technique.

In this example, we have to navigate up two levels in the directory structure. The document with the active help link is located in the sub-directory guide underneath our plug-in directory. So we must navigate up one directory to reach our plug-in's root, and another level to reach the "virtual" location of all plug-ins. Then we can refer to the org.eclipse.help plug-in.

In the body of your documentation, you invoke the liveAction script.

     <a href='javascript:liveAction(
    	"org.eclipse.platform.doc.isv",
    	"org.eclipse.platform.doc.isv.activeHelp.ActiveHelpOpenDialogAction",
    	"")'>Click here for a Message.</a>

The parameters for liveAction are

- the ID of the plug-in that contains the action
- the name of the class that implements the action
- the String that will be passed to the live help action using setInitializationString. We don't need to pass any information from the HTML page, so we just pass an empty string.