![]() |
![]() |
Interaction > Creating reactions > Hyperlink reaction
Hyperlink reaction
This reaction places a hyperlink on the object.
For example, by clicking on a character, you could go straight to the character's home page.
You can enter absolute or relative URLs. A relative URL is relative to where the host web page is stored. The host web page is the HTML file containing the AXEL object.
For example, you could use the following URLs in a Hyperlink reaction:
- ./nextpage.htm or nextpage.htm links to an HTM file in the same directory as the host web page.
- ../nextpage or subdirectory/nextpage.htm links to an HTM file in a subdirectory of the host web page directory.
Absolute URLs must start with http:// For example:
Note: In some cases, it may not be convenient to code hyperlinks in the 3D content. You may prefer to manage all the hyperlinks in the html page. To do this, you can use the Call JavaScript reaction instead of the Hyperlink reaction. In the JavaScript code (which resides in the html page), you could set the desired hyperlink. See Call JavaScript reaction.
The JavaScript and Hyperlink reactions support all types of URLs, including:
The reaction can be set in three different ways:
- If you create the reaction with nothing selected, it is simply added to the resource bank, waiting to be linked.
- If you select an object then create the reaction, a sensor is added to the object and the reaction is linked to it. The sensor is set to OnLeftClick.
- If you select a trigger then create the reaction, the reaction is linked to the trigger.
To add a Hyperlink to an object:
- Select the object and choose Interaction > Reactions > Hyperlink.
- Enter the hyperlink that you want the reaction to open, and click OK.
- To test the interaction, publish the host web page.
When you click the object, the web browser opens the specified link.
To trigger a Hyperlink reaction with any sensor:
- Click and empty part of the viewport to select nothing, then choose
Interaction > Reactions > Hyperlink.- Link the reaction to a sensor.
To change the URL:
In the Interaction Editor, select the reaction, then adjust its parameters in the Parameter Editor.
Hyperlink Reaction Parameters
![]() |
![]() |