i need a help guys. it is working fine in IE : document.getElementById('blabla').value='text' But not working on FireFox . Is there any cross browser way to do this ? Edit : I have solved the problem. Forgot adding ID property . It was dumb