How do I make a chrome extension click a button on a page?

16,989 views
Skip to first unread message

Meowls

unread,
Jan 15, 2015, 12:02:01 PM1/15/15
to chromium-...@chromium.org

Hi, I'm trying to create a Google Chrome extension that clicks a button when the extention is pressed. I'm in need of the code to simulate a mouse click on a button for my Java script file, I already have the basic formatting set up thanks to a few tutorials but I can't seem to find anything to help me simulate a button press, or one that I can understand at least.

Thank you (:


PhistucK

unread,
Jan 15, 2015, 12:07:42 PM1/15/15
to Meowls, Chromium-extensions
This looks like a general JavaScript and DOM question and not an extension specific one, so you should search for that using your favorite search engine.

For example -


PhistucK

On Thu, Jan 15, 2015 at 7:02 PM, Meowls <enix...@gmail.com> wrote:

Hi, I'm trying to create a Google Chrome extension that clicks a button when the extention is pressed. I'm in need of the code to simulate a mouse click on a button for my Java script file, I already have the basic formatting set up thanks to a few tutorials but I can't seem to find anything to help me simulate a button press, or one that I can understand at least.

Thank you (:


--
You received this message because you are subscribed to the Google Groups "Chromium-extensions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extens...@chromium.org.
To post to this group, send email to chromium-...@chromium.org.
Visit this group at http://groups.google.com/a/chromium.org/group/chromium-extensions/.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/11bb5de7-7cff-4ee6-bc9b-55576c16dacf%40chromium.org.
For more options, visit https://groups.google.com/a/chromium.org/d/optout.

Muzaffer Tolga Ozses

unread,
Jan 15, 2015, 12:10:56 PM1/15/15
to PhistucK, Meowls, Chromium-extensions
Reply all
Reply to author
Forward
0 new messages