JS ACTION
FULL
<action name="" type="Javascript" autorun=""><![CDATA[
...
Javascript code
...
]]></action>
Reference