I have to enter a random value in a textarea of a web site by using grease monkey script the text area didn\'t have an id so document.getElementB
textarea
id
document.getElementB
Use getElementsByName:
document.getElementsByName("inpx_msg")[0]
Obviously, you'll have to check if it exists, etc.