Using JavaScript

Any section or passage can call some JavaScript when it is displayed. Simply indent with four spaces or a tab, before the text.

1
2
3
4
5
6
Clicking this [link] will show an alert.
[link]:
    alert ("Hello!");
    
Text for the passage.
X

Edit example in ScratchPad →

Clicking this link will show an alert.