javascript onclick not working in jsfiddle

前端 未结 5 1897
既然无缘
既然无缘 2020-12-17 15:34

I am trying to make jsfiddle , my onclick is not working in jsfiddle. what is wrong in my code



        
5条回答
  •  时光说笑
    2020-12-17 16:06

    
    document.getElementById('a').onclick = function() { alert(1); }
    

    http://jsfiddle.net/gs6rehnx/12/

提交回复
热议问题