最新国产好看的视频,伊人天堂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
当阳市| 绍兴县| 任丘市| 九寨沟县| 石棉县| 丹巴县| 康保县| 攀枝花市| 仁寿县| 通山县| 灌南县| 城步| 盘锦市| 洛阳市| 赤峰市| 大埔区| 平顺县| 乌海市| 日土县| 汶川县| 大余县| 天津市| 凤山市| 铁岭县| 安平县| 桐梓县| 桐柏县| 西林县| 昌图县| 余江县| 嘉义县| 湛江市| 德江县| 精河县| 拜泉县| 遵化市| 商洛市| 安徽省| 广丰县| 崇仁县| 临澧县|