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

[Login to get rid of this advertisement]

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