all! I am having a problem using the a simple onclick method. Kindly please help me out. Here is that code... When i click on the button nothing really happens.
Onclick should be a function, not a statement. Try
btn.onclick=function(){ alert('hi'); }