IFrameElement.insertAdjacentText Method
SharePoint Designer Developer Reference |
Inserts text into an IFRAME element at the specified location.
Syntax
expression.insertAdjacentText(where, text)
expression Required. A variable that represents an IFrameElement object.
Parameters
Name | Required/Optional | Data Type | Description | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
where | Required | String | String that specifies where to insert the text. Can be one of the following values:
|
||||||||||
text | Required | String | String that specifies the text to insert. |
Remarks
The following image illustrates where text or HTML is inserted when you use each of the possible String values for the where parameter.
Use the insertAdjacentHTML method to insert text that contains HTML. In addition, you can use the outerHTML and outerText properties to insert HTML and text outside the specified element, and the innerHTML and innerText properties to insert HTML and text inside the specified element. The following image illustrates where each of these properties applies. Note that the innerHTML and outerHTML properties require well-formed HTML.
See Also