0
edits
Changes
no edit summary
To include JavaScript JS files in a [[Web Page View]] custom field you must utilize the following method.
<pre>
You will also have to call the ''includejsfiles'' function in the body onload:
<body onload="includejsfiles();">
===Explanation===
Including the JS files within a script tag such as will cause the page to crash in certain browsers, particularly Internet Explorer.
<SCRIPT type="text/javascript" language=JavaScript src="/validate.js"></SCRIPT>
This method can be used in [[Browser Script]] custom fields or on template pages, sign-up pages etc. The '''includejsfiles''' method above must be used for Web Page Views.
[[Category:JavaScript]]