Concordion > Extension >

JavaScript Extension

JavaScript resources can be added to the Concordion output using an extension. The JavaScript can either be:

  1. embedded in the Concordion output HTML, or
  2. linked, in which case the JavaScript file will be copied to the specified location in the Concordion output folder and a JavaScript declaration added to the output HTML.

Example - embedded JavaScript

An extension with embedded JavaScript is installed.

When Concordion is run, the JavaScript is embedded in the <head> section of the output HTML.

Example - linked JavaScript

An extension with linked JavaScript is installed for the JavaScript file my.js with the target location /js/my.js.

When Concordion is run, the resource /js/my.js is available in the Concordion output directory, and a link to the external stylesheet js/my.js is declared in the output HTML.