Source Code : 
document.getElementById('id').onclick = function () { alert('hola'); }; 

Xcode Reviewed by Xcode on . modificar onclick compatible con internet explorer document.getElementById('id').onclick = function () { alert('hola'); }; Rating: 5