Creates an empty caption element in the table.
dhtml语法
ocaption = table.createcaption()
return value
returns燼 caption object.
Remarks
If no caption exists, the createCaption method
creates an empty table caption, adds it to the table, and returns a pointer to it.
If one or more captions already exist, the method returns a pointer to the first
one on the list.
DHTML代码范例
This example uses the createCaption method to create a caption.
myCaption = document.all.myTable.createCaption()
是否符合公共标准
This method is defined in
World Wide Web Consortium (W3C) Document Object Model (DOM) Level 1 .
Applies To
更多语法参考
createtfoot, createthead, deletecaption, deletetfoot, deleteTHead