From Documentation


<script [src="foo.js"]

The script element is used to specify an external JavaScript file, or to embed the JavaScript code directly.


  <script src="a.js"/>
function doIt() {



The path of an external JavaScript file. It is suggested to use a path related to the directory of the WPD file. For example,

 <script src="abc.js"/>
 <script src="../foo/def.js"/>



It specifies the condition to embed the specified JavaScript file. For example, if browser="ie6-" is specified, the JavaSript file is embeded only if the client is Internet Explorer 6. For the available types you could check, please refer to Servlets.isBrowser(ServletRequest, String).

Version History

Last Update : 2010/12/03

Version Date Content

Last Update : 2010/12/03

Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.