The vco:IncludeJavascript component inserts a <script> tag that defines a URL to a JavaScript file, to add a JavaScript function to a Web view.

You insert the vco:IncludeJavascript component in the <head> tags of a Web view page.

The vco:IncludeJavascript component defines the following properties.

Name

Type

Description

src

String

The path to a Javascript file, with or without the .js extension

The .js file extension is optional. The following example code lines both return the same src value.

<script jwcid="@vco:IncludeJavascript" src="dojo"/>
<script jwcid="@vco:IncludeJavascript" src="dojo/dojo.js"/>