最新国产好看的视频,伊人天堂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
南靖县| 乳山市| 石台县| 修武县| 镇安县| 巴青县| 灵丘县| 海晏县| 岳阳县| 黑山县| 邢台县| 区。| 金堂县| 江油市| 武冈市| 石台县| 东丽区| 来宾市| 涪陵区| 黑龙江省| 三门县| 桂阳县| 阿尔山市| 台湾省| 手游| 新化县| 江门市| 玛纳斯县| 玛纳斯县| 庆安县| 凤凰县| 临清市| 夹江县| 旺苍县| 赣榆县| 鄂伦春自治旗| 广南县| 冷水江市| 内江市| 慈利县| 高唐县|