getElementsByName returns an array so you might want to try document.getElementsByName('q')[0].value = "some text";
Ernest On Wed, Dec 23, 2009 at 4:53 PM, Ahmed <a27...@gmail.com> wrote: > I was trying to alter a text area's value from empty into "Type here" > where the web page is not part of the extension (say Google.com and > "Text Here" appears in the text box). > > This is my content script: > > document.getElementsByName('q').value = "vvvvvvvvvvvvvvv"; > > --- thats it, where q is the name of the google text box. > > And the manifest.js is correctly configured. > > Could anyone help? :) > > Thank you > > -- > > You received this message because you are subscribed to the Google Groups > "Chromium-extensions" group. > To post to this group, send email to chromium-extensi...@googlegroups.com. > To unsubscribe from this group, send email to > chromium-extensions+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/chromium-extensions?hl=en. > > > -- You received this message because you are subscribed to the Google Groups "Chromium-extensions" group. To post to this group, send email to chromium-extensi...@googlegroups.com. To unsubscribe from this group, send email to chromium-extensions+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/chromium-extensions?hl=en.