4.10 INCLUDE

Causes the contents of another template file to be included into the current template at the point where the INCLUDE keyword is encountered. The name of the file to be included should not be a variable name and it should not be inside quote characters. Included files are compiled in as part of the file in which they are included. All variables are shared between the including file and the file it includes.

{! setfocus.inc }
<SCRIPT LANGUAGE="JavaScript">
<!--
function setFocus()
{
document.forms[0].elements[0].focus();
}
//-->
</SCRIPT>
<HEAD>
<TITLE>My Page</TITLE>
{INCLUDE setfocus.inc}
<HEAD>

This example generates the following HTML text:

<HEAD>
<TITLE>My Page</TITLE>
<SCRIPT LANGUAGE="JavaScript">
<!--
function setFocus()
{document.forms[0].elements[0].focus();}
//-->
</SCRIPT>
<HEAD>