Javascript Methods JavaScript Reference

Note:
Creates a  element associated with the specified table. 
The contents of the  must also be set at run time.
    
Syntax:
    
document.getElementById("tableID").createCaption()
document.all.tableID.createCaption() // IE only