JavaScript Extension

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

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

Example - embedded JavaScript

An extension with embedded JavaScript is installed.

When Concordion.NET 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.NET is run, the resource /js/my.js is available in the Concordion.NET output directory, and a link to the external stylesheet js/my.js is declared in the output HTML.