There is some html page in the Web. It has a table. How can I use the html table content using JScript ?
Cyol wrote: > There is some html page in the Web. It has a table. > How can I use the html table content using JScript ? As with other elements in a HTML document, you can the table by id using var table = document.getElementById('tableId'); if it has a unique id attribute value, or you can find all table elements using var tables = document.getElementsByTagName('table'); var table = tables[0]; A table element object then has properties like tBodies, tHead, tFoot, rows, see http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-64060425, which you can use to access table sections like the head or the foot or a tbody or one of the rows. Each row element object has a cells collection to acccess the cells. -- Martin Honnen --- MVP XML http://JavaScript.FAQTs.com/
Dear Martin Honnen. Thank you. Could you give me the manner for binding for example http://www.ss.com/daw.html to "document" (document.getElementById("tableId")) ?