Lulus string menggunakan fungsi
document.write("<td width='74'><button id='button' type='button' onclick='myfunction(\""+ name + "\")'>click</button></td>")
Frightened Ferret