JavaScript Reference/Javascript Methods/deleteCaption — различия между версиями

Материал из Web эксперт
Перейти к: навигация, поиск
 
м (1 версия)
 
(нет различий)

Текущая версия на 11:22, 26 мая 2010

"deleteCaption()" Example

   <source lang="javascript">
   

<html> <body> <script language="JavaScript"> function function1() {

   document.all.myTable.deleteCaption(); 

} </script>

This is the caption element
Cell 1 Cell 2
Cell 1 Cell 2

<input type="button" value="Remove caption" onclick="function1();"> </body> </html>


     </source>
   
  


"deleteCaption()" is applied to

   <source lang="javascript">

+----------------+--------------------------------------------------------------+

| Applied_To | | +----------------+--------------------------------------------------------------+ </source>

"deleteCaption()" Syntax, Parameters and Note

   <source lang="javascript">

Note: Removes the

element from a table.

Syntax:

document.getElementById("tableID").deleteCaption() document.all.tableID.deleteCaption() // IE only


     </source>