Template:UCSF/Header

From 2010.igem.org

(Difference between revisions)
Line 83: Line 83:
var tmp = document.createElement('a');
var tmp = document.createElement('a');
                 var temp = toBeTOCced[i];
                 var temp = toBeTOCced[i];
-
                 while(temp.lastChild!=undefined){temp=temp.lastChild;alert(temp);}
+
                 while(temp.lastChild!=null){temp=temp.lastChild;alert(temp);}
-
                 var result = temp.innerHTML;
+
                 var result = temp;
tmp.innerHTML = result;
tmp.innerHTML = result;
tmp.className = 'page';
tmp.className = 'page';

Revision as of 07:24, 10 October 2010