E
E
Eugene2018-12-25 12:51:39
JavaScript
Eugene, 2018-12-25 12:51:39

How to emulate a click from a Chrome extension?

<td style="vertical-align:bottom;text-align:right;">
  <a href="#" id="form:refresh" onclick="submitForm('form',1,{source:'form:refresh'});return false;">
    <img src="/cdocslistarefresh3BP4-1.gif">
  </a>
</td>

I'm writing an extension for Chrome. Emulation of a click from an extension does not work.
$(".panelLight a").trigger("click"); - works in console, but doesn't work in script.
"submitForm('form',1,{source:'form:refresh'}) - similar, but here it says that the function is not defined.
How to emulate a button click from an extension?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Eugene, 2018-12-25
@eugeneledenev

I found the solution here:
https://stackoverrun.com/ru/q/2604841

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question