SyntaxFix
Write A Post
Hire A Developer
Questions
Change your code to
document.write("<td width='74'><button id='button' type='button' onclick='myfunction(\""+ name + "\")'>click</button></td>")