D
D
dllweb2017-02-14 20:48:18
JavaScript
dllweb, 2017-02-14 20:48:18

Calling a js function on a page from an extension?

Good time, the question is the following, how can I call a js function on the current page from the chrome extension
Let's say there is a function on the page that does something, and I would like to call it from the extension and get the result of its work and then operate with its results inside the extension

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nwton, 2017-02-14
@dllweb

location.href = 'javascript:alert(1)';

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question