User Rating: 0 / 5

Star InactiveStar InactiveStar InactiveStar InactiveStar Inactive
 

{AddScript striphtml="true|false"} Your Java-Script-Code {/AddScript}

If you want to add Java-Script-Code, you can write your code between the tag AddInlineScript.

params: striphtml true or false default is: true

if you have the source and want to insert it (without filtering) use striphtml="false" for a correct output.

How to use it:

{AddScript}
(function ($) {
$( document ).ready(function() {
window.setTimeout(function() { alert('test'); }, 10000);
});
})(jQuery);
{/AddScript}

This will add the Java-Script-Code to the head section of the HTML-Page.

See also: AddScriptInlineCode AddScriptFile



Available for: