Using DOM with HTML/Javascript

Figure 718. DOM and Javascript Slide presentation Create comment in forum
  • Widespread Javascript support.

  • Full DOM support.


Figure 719. DOM Javascript example Slide presentation Create comment in forum
function sortables_init() {
  if (!document.getElementsByTagName) return;
  tbls = document.getElementsByTagName("table");
  for (ti=0;ti<tbls.length;ti++) {
    thisTbl = tbls[ti];
    if (((' '+thisTbl.className+' ').indexOf("sortable") != -1)
      && (thisTbl.id)) {
      ts_makeSortable(thisTbl);
    }
  }}

Figure 720. DOM Javascript demo Slide presentation Create comment in forum