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

getAdjacentText Method

Internet Development Index

Returns the adjacent text string.

Syntax

text = object.getAdjacentText(sWhere)

Parameters

sWhere Required. String爐hat specifies where the text is located using one of the following values:
beforeBeginText is returned immediately before the element.
afterBeginText is returned after the start of the element but before all other content in the element.
beforeEndText is returned immediately before the end of the element but after all other content in the element.
afterEndText is returned immediately after the end of the element.

Return Value

Returns the first adjacent text string.

Example

This example uses the getAdjacentText method to find specific text.

<SCRIPT>
function fnFind(){
var sWhere = oSel.options[oSel.selectedIndex].text;
alert(oPara.getAdjacentText(sWhere));
}
</SCRIPT>
This is the text before (beforeBegin).
<P ID=oPara>
This is the text after (afterBegin).
<B>A few extra words.</B>
This is the text before (beforeEnd).
</P>
This is the text after (afterEnd).
<SELECT ID=oSel>
<OPTION SELECTED>beforeBegin
<OPTION>afterBegin
<OPTION>beforeEnd
<OPTION>afterEnd
</SELECT>
<INPUT TYPE="button" VALUE="Find text" onclick="fnFind()">

Standards Information

There is no public standard that applies to this method.

Applies To

A, ACRONYM, ADDRESS, APPLET, AREA, B, BASE, BASEFONT, BDO, BIG, BLOCKQUOTE, BODY, BR, BUTTON, CAPTION, CENTER, CITE, CODE, COL, COLGROUP, COMMENT, CUSTOM, DD, DEL, DFN, DIR, DIV, DL, DT, EM, EMBED, FIELDSET, FONT, FORM, FRAME, FRAMESET, HEAD, hn, HR, HTML, I, IFRAME, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=hidden, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, INS, KBD, LABEL, LEGEND, LI, LINK, LISTING, MAP, MARQUEE, MENU, nextID, OBJECT, OL, OPTION, P, PLAINTEXT, PRE, Q, S, SAMP, SCRIPT, SELECT, SMALL, SPAN, STRIKE, STRONG, SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TITLE, TR, TT, U, UL, VAR, XMP
吴忠市| 都兰县| 囊谦县| 萨嘎县| 陆川县| 商河县| 宜君县| 东阳市| 通许县| 贡山| 抚顺县| 神木县| 蛟河市| 三明市| 谷城县| 那曲县| 荥经县| 定陶县| 海南省| 武定县| 陆河县| 大邑县| 灵璧县| 林西县| 贵阳市| 溆浦县| 盐亭县| 海盐县| 大方县| 将乐县| 和田县| 泉州市| 开远市| 呼伦贝尔市| 蒲城县| 定日县| 定州市| 长乐市| 德江县| 桓仁| 慈溪市|