INS 元素 | ins 對象
KBD 元素 | kbd 對象
DHTML 對象
使瀏覽器顯示一個對話框,提示用戶輸入單行文本。
成員表
標(biāo)簽屬性 屬性 描述 ACCESSKEY accessKey 設(shè)置或獲取對象的快捷鍵。 ACTION action 設(shè)置或獲取表單內(nèi)容要發(fā)送處理的 URL。 ATOMICSELECTION 指定元素及其內(nèi)容是否可以一不可見單位統(tǒng)一選擇。 blockDirection 獲取表明塊元素內(nèi)容的繞排方向的值,是由左至右,還是由右至左。 canHaveHTML 獲取表明對象是否可以包含豐富的 HTML 標(biāo)簽的值。 CLASS className 設(shè)置或獲取對象的類。 clientHeight 獲取對象的高度,不計(jì)算任何邊距、邊框、滾動條或可能應(yīng)用到該對象的補(bǔ)白。 clientLeft 獲取 offsetLeft 屬性和客戶區(qū)域的實(shí)際左邊之間的距離。 clientTop 獲取 offsetTop 屬性和客戶區(qū)域的實(shí)際頂端之間的距離。 clientWidth 獲取對象的寬度,不計(jì)算任何邊距、邊框、滾動條或可能應(yīng)用到該對象的補(bǔ)白。 CONTENTEDITABLE contentEditable 設(shè)置或獲取表明用戶是否可編輯對象內(nèi)容的字符串。 disabled 獲取表明用戶是否可與該對象交互的值。 DISABLED disabled 設(shè)置或獲取控件的狀態(tài)。 form 獲取對象所在表單的引用。 HIDEFOCUS hideFocus 設(shè)置或獲取表明對象是否顯式標(biāo)明焦點(diǎn)的值。 ID id 獲取標(biāo)識對象的字符串。 isContentEditable 獲取表明用戶是否可編輯對象內(nèi)容的值。 isDisabled 獲取表明用戶是否可與該對象交互的值。 isMultiLine 獲取表明對象的內(nèi)容是包含一行還是多行的值。 LANG lang 設(shè)置或獲取要使用的語言。 LANGUAGE language 設(shè)置或獲取當(dāng)前腳本編寫用的語言。 onOffBehavior 獲取表明指定的 Microsoft® DirectAnimation® 行為是否正在運(yùn)行的對象。 parentElement 獲取對象層次中的父對象。 readyState 獲取對象的當(dāng)前狀態(tài)。 scopeName 獲取為該元素定義的命名空間。 scrollHeight 獲取對象的滾動高度。 scrollLeft 設(shè)置或獲取位于對象左邊界和窗口中目前可見內(nèi)容的最左端之間的距離。 scrollTop 設(shè)置或獲取位于對象最頂端和窗口中可見內(nèi)容的最頂端之間的距離。 scrollWidth 獲取對象的滾動寬度。 STYLE 為該設(shè)置元素設(shè)置內(nèi)嵌樣式。 TABINDEX tabIndex 設(shè)置或獲取定義對象的 Tab 順序的索引。 tagUrn 設(shè)置或獲取在命名空間聲明中指定的統(tǒng)一資源名稱(URN)。 UNSELECTABLE 指定該元素不可被選中。
行為 描述 clientCaps 提供關(guān)于 Internet Explorer 支持的特性的信息,以及提供即用即裝的方法。 download 下載文件并在下載完成后通知一個指定的回調(diào)函數(shù)。 homePage 包含關(guān)于用戶主頁的信息。
集合 描述 behaviorUrns 返回標(biāo)識附加到該元素行為的統(tǒng)一資源名稱(URN)字符串的集合。
事件 描述 onactivate 當(dāng)對象設(shè)置為活動元素時觸發(fā)。 onbeforedeactivate 在 activeElement 從當(dāng)前對象變?yōu)楦肝臋n其它對象之前立即觸發(fā)。 onbeforeeditfocus 在包含于可編輯元素內(nèi)的對象進(jìn)入用戶界面激活狀態(tài)前或可編輯容器變成控件選中區(qū)前觸發(fā)。 onblur 在對象失去輸入焦點(diǎn)時觸發(fā)。 oncontrolselect 當(dāng)用戶將要對該對象制作一個控件選中區(qū)時觸發(fā)。 ondeactivate 當(dāng) activeElement 從當(dāng)前對象變?yōu)楦肝臋n其它對象時觸發(fā)。 onfocus 當(dāng)對象獲得焦點(diǎn)時觸發(fā)。 onmove 當(dāng)對象移動時觸發(fā)。 onmoveend 當(dāng)對象停止移動時觸發(fā)。 onmovestart 當(dāng)對象開始移動時觸發(fā)。 onreadystatechange 當(dāng)對象狀態(tài)變更時觸發(fā)。 onresize 當(dāng)對象的大小將要改變時觸發(fā)。 onresizeend 當(dāng)用戶更改完控件選中區(qū)中對象的尺寸時觸發(fā)。 onresizestart 當(dāng)用戶開始更改控件選中區(qū)中對象的尺寸時觸發(fā)。
方法 描述 addBehavior 給元素附加一個行為。 blur 使元素失去焦點(diǎn)并觸發(fā) onblur 事件。 componentFromPoint 通過特定事件返回對象在指定坐標(biāo)下的位置。 dragDrop 初始化拖曳事件。 fireEvent 觸發(fā)對象的指定事件。 focus 使得元素得到焦點(diǎn)并執(zhí)行由 onfocus 事件指定的代碼。 getAttributeNode 獲取由 attribute.name 屬性引用的 attribute 對象。 getBoundingClientRect 獲取指定 TextRectangle 對象集合綁定的對象。 getClientRects 獲取描述對象內(nèi)容或客戶區(qū)內(nèi)布局的矩形集合。每個矩形都描述了一條直線。 normalize 合并鄰接 TextNode 對象以便生成一個常規(guī)的文檔對象模型。 removeAttributeNode 從對象中刪除刪除 attribute 對象。 removeBehavior 分離元素的行為。 setActive 設(shè)置對象為當(dāng)前對象而不將對象置為焦點(diǎn)。 setAttributeNode 設(shè)置 attribute 對象為對象的一部分。
對象 描述 currentStyle 代表了在全局樣式表、內(nèi)嵌樣式和 HTML 標(biāo)簽屬性中指定的對象格式和樣式。
樣式標(biāo)簽屬性 樣式屬性 描述 background background 設(shè)置或獲取對象最多五個獨(dú)立的背景屬性。 background-attachment backgroundAttachment 設(shè)置或獲取背景圖像如何附加到文檔內(nèi)的對象中。 background-color backgroundColor 設(shè)置或獲取對象內(nèi)容后的顏色。 background-image backgroundImage 設(shè)置或獲取對象的背景圖像。 background-position backgroundPosition 設(shè)置或獲取對象背景的位置。 background-repeat backgroundRepeat 設(shè)置或獲取對象的 backgroundImage 屬性如何平鋪。 behavior behavior 設(shè)置或獲取 DHTML 行為的位置。 border border 設(shè)置或獲取對象周圍邊框的繪制屬性。 border-bottom borderBottom 設(shè)置或獲取對象下邊框的屬性。 border-bottom-color borderBottomColor 設(shè)置或獲取對象下邊框的顏色。 border-bottom-style borderBottomStyle 設(shè)置或獲取對象下邊框的樣式。 border-bottom-width borderBottomWidth 設(shè)置或獲取對象下邊框的寬度。 border-color borderColor 設(shè)置或獲取對象的邊框顏色。 border-left borderLeft 設(shè)置或獲取對象左邊框的屬性。 border-left-color borderLeftColor 設(shè)置或獲取對象左邊框的顏色。 border-left-style borderLeftStyle 設(shè)置或獲取對象左邊框的樣式。 border-left-width borderLeftWidth 設(shè)置或獲取對象左邊框的寬度。 border-right borderRight 設(shè)置或獲取對象右邊框的屬性。 border-right-color borderRightColor 設(shè)置或獲取對象右邊框的顏色。 border-right-style borderRightStyle 設(shè)置或獲取對象右邊框的樣式。 border-right-width borderRightWidth 設(shè)置或獲取對象右邊框的寬度。 border-style borderStyle 設(shè)置或獲取對象上下左右邊框的樣式。 border-top borderTop 設(shè)置或獲取對象上邊框的屬性。 border-top-color borderTopColor 設(shè)置或獲取對象上邊框的顏色。 border-top-style borderTopStyle 設(shè)置或獲取對象上邊框的樣式。 border-top-width borderTopWidth 設(shè)置或獲取對象上邊框的寬度。 border-width borderWidth 設(shè)置或獲取對象上下左右邊框的寬度。 bottom bottom 設(shè)置或獲取對象相對于文檔層次中下個定位對象的底部的位置。 clear clear 設(shè)置或獲取對象是否允許在其左側(cè)、右側(cè)或兩邊放置浮動對象,以防下段文本顯示在浮動對象上。 clip clip 設(shè)置或獲取定位對象的哪個部分可見。 color color 設(shè)置或獲取對象文本的顏色。 font font 設(shè)置或獲取對象最多六個獨(dú)立的字體屬性。 font-family fontFamily 設(shè)置或獲取對象文本所使用的字體名稱。 font-size fontSize 設(shè)置或獲取對象文本使用的字體大小。 font-style fontStyle 設(shè)置或獲取對象的字體樣式,如斜體、常規(guī)或傾斜。 font-variant fontVariant 設(shè)置或獲取對象文本是否以小型大寫字母顯示。 font-weight fontWeight 設(shè)置或獲取對象的字體寬度。 hasLayout 獲取表明對象是否有布局的值。 layout-flow layoutFlow 設(shè)置或獲取對象內(nèi)容的方向和繞排方向。 left left 設(shè)置或獲取對象相對于文檔層次中下個定位對象的左邊界的位置。 letter-spacing letterSpacing 設(shè)置或獲取對象的字符間附加空間的總和。 line-height lineHeight 設(shè)置或獲取對象兩行間的距離。 margin margin 設(shè)置或獲取對象的上下左右邊距。 margin-bottom marginBottom 設(shè)置或獲取對象的下邊距寬度。 margin-left marginLeft 設(shè)置或獲取對象的左邊距寬度。 margin-right marginRight 設(shè)置或獲取對象的右邊距寬度。 margin-top marginTop 設(shè)置或獲取對象的上邊距寬度。 page-break-after pageBreakAfter 設(shè)置或獲取表明對象后發(fā)生換頁的字符串。 page-break-before pageBreakBefore 設(shè)置或獲取表明對象前發(fā)生換頁的字符串。 position position 設(shè)置或獲取對象所使用的定位方式。 right right 設(shè)置或獲取對象相對于文檔層次中下個已定位的對象的右邊界的位置。 float styleFloat 設(shè)置或獲取文本要繞排到對象的哪一側(cè)。 text-align-last textAlignLast 設(shè)置或獲取如何排列對象的最后一行或僅有的一行。 text-autospace textAutospace 設(shè)置或獲取自動留空和文本的窄空間寬度調(diào)整。 text-decoration textDecoration 設(shè)置或獲取對象中的文本是否有閃爍、刪除線、上劃線或下劃線的樣式。 textDecorationBlink 設(shè)置或獲取表明對象的 textDecoration 屬性是否含有有“blink”的 Boolean 值。 textDecorationLineThrough 設(shè)置或獲取表明對象內(nèi)的文本是否有刪除線的 Boolean 值。 textDecorationNone 設(shè)置或獲取表明對象的 textDecoration 屬性是否設(shè)置為 none 的 Boolean 值。 textDecorationOverline 設(shè)置或獲取表明對象中的文本是否有上劃線的 Boolean 值。 textDecorationUnderline 設(shè)置或獲取對象中的文本是否有下劃線的 Boolean 值。 text-indent textIndent 設(shè)置或獲取對象中文本的縮進(jìn)。 text-kashida-space textKashidaSpace 設(shè)置或獲取對象內(nèi)文本對齊行時所使用空白擴(kuò)展的 kashida 擴(kuò)展的倍率。 text-overflow textOverflow 設(shè)置或獲取表明是否顯示省略號以表明文本溢出的值。 text-transform textTransform 設(shè)置或獲取對象中文本的渲染方式。 text-underline-position textUnderlinePosition 設(shè)置或獲取對象的 textDecoration 屬性中設(shè)置的下劃線的位置。 top top 設(shè)置或獲取對象相對于文檔層次中下個定位對象的上邊界的位置。 visibility visibility 設(shè)置或獲取對象的內(nèi)容是否顯示。 white-space whiteSpace 設(shè)置或獲取對象中是否自動換行。 word-spacing wordSpacing 設(shè)置或獲取對象中單詞間的附加空間總量。 word-wrap wordWrap 設(shè)置或獲取當(dāng)內(nèi)容超過其容器邊界時是否斷詞。 writing-mode writingMode 設(shè)置或獲取對象內(nèi)容的方向和繞排。 z-index zIndex 設(shè)置或獲取定位對象的堆疊次序。 zoom zoom 設(shè)置或獲取對象的放大比例。
注釋
在 HTML 4 中,此元素是不推薦使用的,而推薦使用 INPUT 元素。isIndex 的 tagName 屬性將返回 input。
ISINDEX 元素屬于文檔的 body 中。
此元素在 Microsoft® Internet Explorer 3.0 的 HTML 中可用,在 Internet Explorer 4.0 的腳本中可用。
此元素將被看作 form 對象中的一個 input 對象。要使用腳本訪問元素,你必須使用 document 對象的 all 集合。例如,要訪問一個 isIndex 對象的 disabled 屬性的語法為:
document.all.oIsindex.disabled=false;此元素是一個塊元素。
此元素需要關(guān)閉標(biāo)簽。
示例
下面的例子使用 ISINDEX 元素提換了默認(rèn)的提示。
<ISINDEX PROMPT="輸入要搜索的索引關(guān)鍵字">標(biāo)準(zhǔn)信息
此對象不是 HTML
所建議的。