document.write foing strange things
javascript contains the following code: var txt = "<tr><td" if (SecIndent[i] > 0) txt+= " class='In" + SecIndent[i] + "'" txt+=' onclick("' +'go2('+ … (read more)
javascript contains the following code:
var txt = "<tr><td" if (SecIndent[i] > 0) txt+= " class='In" + SecIndent[i] + "'" txt+=' onclick("' +'go2('+ "'_" +i +"')"+ '")>' +SecNames[i] +'</td></tr>' alert(txt) // txt += ' onclick("go('+"_'><a href="#_'+i+'">'+SecNames[i]+'</a></td></tr>' document.write(txt); }
seems to be working right -alert displays: <tr><td onclick("go2('_3')")>Chapter 1 – The Number Tiles</td></tr>
when I inspect element it shows <td onclick("go2('_3')")="">Chapter 1 – The Number Tiles</td>
where did the extra =" come from? when I tried other browsers still problems but inspect element was different hopefully this isn't a Windows 10 problem, but very wierd if it is