Target

Target

The target parameter can be used to alter the destination of the IWML content. The value is the ID of the HTML element to use.

By default it will replace the whole body tag. To mix with existing HTML content for styling or other purposes you can specify an HTML element to render into instead of the body. The most common targets are DIV or SPAN elements, but the target can be any HTML element that can accept child elements.

In the following example, Index.iwml will be rendered into a HTML element named MyApp instead of the body tag.

<script src="/IntraWeb.js" data-Target="MyApp" data-Source="/Index.iwml"></script>