Volodymyr Osypov blog

May 21, 2008

Print HTML DOM Tree

Filed under: JavaScript — Tags: , , — admin @ 11:14 am

In previous article we programmed two functions: to add and remove a table row. But we had one issue in Safari and Firefox by removing a row. We had to click Delete button twice. To understand why this happens we need to see the DOM tree of our table, which each browser builds. You can use browser plugins, but now we will just develop our own simple JavaScript function to print DOM tree.
(more…)

Powered by WordPress