Scripts

You can insert JavaScript, JQuery, JScript, or VBScript code into Flare content files. For example, you might have an image that you want to function as a button, performing a specific activity when users click it. There are all kinds of possibilities for scripting. If you can create a script that can be used in a website, you can create it in Flare as well.

Note For Clean XHTML output, MadCap-injected JavaScript is removed. In other words, features such as drop-downs, Help controls, text popups, and footnotes rely on JavaScript to work. Therefore, with Clean XHTML output, these elements are converted to text. However, custom scripts that you might have added to topics (see Scripts) will not automatically be removed when you generate Clean XHTML; if you want to exclude these custom scripts, you must do so manually (i.e., by deleting them or using conditions).

Note If you run security scans on your HTML5 output, you may receive security messages during the scan if you use JavaScript to make context-sensitive (CSH) calls to your Help. See Excluding JavaScript for CSH Calls in HTML5 Output.