The Dyalog Control Script facilitates use of the base HTML script element
When a browser loads this page, it will fetch a script to reverse this paragraph.
!noitcnuf esreveR ⌽ s'LPA rof ssendoog knahT
:ClassScriptAdvanced : MiPageSample
⍝ Control:: _DC.Script
⍝ Description:: Insert reference to JavaScript from a file
∇ Compose:Access Public
Add_.h4'The Dyalog Control Script facilitates use of the base HTML script element''output'Add_.pScriptFollows
⍝ When a browser loads this page, it will fetch a script to reverse this paragraph.
⍝ !noitcnuf esreveR ⌽ s'LPA rof ssendoog knahT Add_.Script'''/Examples/Data/reverse.js'
⍝ Now we add a button to call the JavaScript function: '#reverse''onclick="reverse();"'Add_.Button'Click here to run the script!'∇
:EndClass
Controls used on this page: Dyalog: Button, Script Base HTML: h4, p