萬盛學電腦網

 萬盛學電腦網 >> 網頁制作 >> 腳本Html教程 >> HTML元素:isindex

HTML元素:isindex

   定義

  使浏覽器顯示一個對話框,提示用戶輸入單行文本。

  Causes the browser to display a dialog window that prompts the user for a single line of input.

  注釋

  在 HTML 4 中,此元素是不推薦使用的,推薦使用 INPUT 元素來取代它。isIndex 的 tagName 屬性將返回 input。

  ISINDEX 元素屬於文檔的 body 中。

  此元素在 Internet Explorer 3.0 及以上版本的 HTML 中可用,在 Internet Explorer 4.0 及以上版本的腳本中可用。

  此元素被看作 form 對象中的一個 input 對象。要使用腳本訪問該元素,你必須使用 document 對象的 all 集合。例如,要訪問一個 isIndex 對象的 disabled 屬性的語法為:

  document.all.oIsindex.disabled=false;

  此元素是一個塊元素。

  此元素需要關閉標簽。

  In HTML 4, this element is deprecated; INPUT is recommended for use instead. The tagName property for isIndex returns input.

  The ISINDEX element belongs in the body of the document.

  This element is available in HTML as of Internet Explorer 3.0, and in script as of Internet Explorer 4.0.

  This element is treated as an input object inside a form object. To access the element from script, you must use the all collection of the document object. For example, the syntax for accessing the disabled property of a isIndex object is:

  document.all.oIsindex.disabled=false;

  This element is a block element.

  This element requires a closing tag.

  示例代碼

     <ISINDEX PROMPT="Enter a keyword to search for in the index">

  標准信息

  該對象已不建議使用,將可能在今後HTML標准中廢棄。

  This object is deprecated in HTML.

copyright © 萬盛學電腦網 all rights reserved