I have a very simple method in a content script which is supposed to
press a button:
function submitForm() {
var submitButton = document.getElementById('submit_form');
submitButton.click();
}I added a small div to the page, and inside the div I placed a button which upon click triggers this method. This approach works fine. However, if I set this method as a callback function from a message to the background page, or, if I set a time out: setTimeout(submitForm, 5000) The method is called, but the button isn't clicked (the form doesn't get submitted). Anyone knows what could lead to that? Thanks, Yuval -- You received this message because you are subscribed to the Google Groups "Chromium-extensions" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/chromium-extensions?hl=en.
