Skip to end of metadata
Go to start of metadata

Insert the new content to the page.

Syntax

Attributes

Attribute

Value

Default

Description

target*

string

 

HTML element ID for selecting the target element, which content is going to be updated.

selector*string A CSS selector for selecting the target element.

position

before,after

after

Indicates, whether the new content should be inserted before or after the target element.

html/text contents

string

 

The new content. The content should be escaped or wrapped in CDATA block.

* Both target and selector attributes are used to select the target element of this instruction. Only one of them is required. When both are present, attribute selector has precedence.

Events - JS API

Examples

Zdrojové HTML
  • No labels