TQS Home
Trivia Quiz Shell Version 2.8 Now Available!Bot Productions Home
TQS 2.0

Back to Reference

ONLOAD Element

Specifies JavaScript to be executed when TQS switches to a location of this type.

Syntax
<ONLOAD>
  ...
</ONLOAD>
Attributes

None.

Placement

The ONLOAD element must be a child of the CUSTOMDIV element.

Children

No children are supported within the ONLOAD element.

Remarks

Script within this element and the SCRIPT element may use the script variables and functions described in the reference.

It is recommended that the ONLOAD script calls a function defined in the SCRIPT element.

TQS 2.7 and earlier All variables, functions, and any other identifiers must begin with "S_". This is not required as of TQS 2.8.

The script contents must use &gt; and &lt; instead of > and <, respectively.

Only JavaScript may be used.

Example

<ONLOAD>
  loadFirstQuestion();
</ONLOAD>

©2020 Bot Productions. All rights reserved.Last Updated: September 9, 2007