Windows 10 reached EOS (end of support) on October 14, 2025. If you are on Windows 10, see this article.

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

document.write foing strange things

  • No replies
  • 0 have this problem
  • 14 views

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

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 &#8211; 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

You must log in to your account to reply to posts. Please start a new question, if you do not have an account yet.