I know what is the problem! It only doesnt work in IE, others work.' (Only IE have problem) Is there a way to slove that? also, if i want alert_two to have arguments, like
function show(){ document.write('<button id="a">Press Me</button>'); document.getElementById("a").onclick = alert_two("HelloWorld");} function alert_two(x){ alert(x);}
It will alert when i press "Hello World" which i dont want , is there an way to slove that? (Not only IE) btw, really thank you for you help.