Does javascript work on mobile browsers

Hi,
I'm converting a website of mine to be used in mobile phone browsers.
However, my websites uses a lot of <button> </button> tags and a lot of the following javascript:

document.getElementById("something").value= "valueHere"; // to update a hidden input field
document.forms["makepost"].submit(); // to submit forms

My question is that is this much javascript okay on mobile browsers?
Or do I need to use plain html to submit forms?
Thanks

from JavaScript http://ift.tt/1U0WA8I
via IFTTT
Previous
Next Post »
Thanks for your comment