最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

pasteHTML Method

Internet Development Index

Pastes HTML text into the given text range, replacing any previous text and HTML elements in the range.

Syntax

TextRange.pasteHTML(sHTMLText)

Parameters

sHTMLText Required. String爐hat specifies the HTML text to paste. The string can contain text and any combination of the HTML tags described in HTML Elements.

Return Value

No return value.

Remarks

This method might alter the HTML text to make it fit the given text range. For example, pasting a table cell into a text range that does not contain a table might cause the method to insert a table element. For predictable results, paste only well-formed HTML text that fits within the given text range.

This method fails only when used inappropriately to paste HTML into a TEXTAREA element in Microsoft® Internet Explorer 5 and later.

This method is accessible at run time. If elements are removed at run time, before the closing tag is parsed, areas of the document might not render.

This feature might not be available on non-Microsoft Win32® platforms.

Example

This example uses the pasteHTML method to replace the current selection with a new paragraph.

<SCRIPT LANGUAGE="JScript">
var sel = document.selection;
if (sel!=null) {
var rng = sel.createRange();
if (rng!=null)
rng.pasteHTML("<P><B>Selection has been replaced.</B></P>");
}
</SCRIPT>

Standards Information

There is no public standard that applies to this method.

Applies To

TextRange
湖北省| 彭山县| 桦南县| 石城县| 洞头县| 甘泉县| 武夷山市| 武清区| 墨竹工卡县| 西林县| 寿光市| 宁南县| 长乐市| 松溪县| 赤城县| 灵川县| 华亭县| 奉节县| 迁西县| 萨迦县| 渑池县| 琼中| 平度市| 嘉峪关市| 广宁县| 泰宁县| 修水县| 平远县| 乐都县| 南郑县| 宜兰县| 嘉义市| 始兴县| 博兴县| 漳平市| 青阳县| 仙游县| 嘉义县| 嘉定区| 麻城市| 温州市|