No estoy muy seguro pero creo que es asi.
En Internet Explorer
Código:
document.getElementById('texto').attachEvent("onclick",function() {
alert("onclick");
})
o
Código:
document.getElementById('texto').attachEvent("onclick",mifuncion);
function mifuncion() {
alert("onclick");
})
En FireFox
Código:
document.getElementById('texto').addEventListener("click",mifuncion);