How can I pass parameters to chrome.tabs.executescript()
?
I have defined them outside from chrome.tabs.executescript()
.
Asked
Active
Viewed 1,605 times
0

Zero Piraeus
- 56,143
- 27
- 150
- 160

srk_pathan
- 396
- 2
- 10
-
this link can help you : [Passing-Parameters][1] [1]: http://stackoverflow.com/questions/4976996/chromes-tabs-executescript-passing-parameters-and-using-libraries – Stephan Nov 23 '12 at 16:02
-
please check the below link for the answer http://stackoverflow.com/questions/17567624/pass-parameter-using-executescript-chrome – Ram's Jul 13 '16 at 11:17
1 Answers
0
I think you can make up a string as a small js code to be passed to executescript() first, to add some parameters into global space (or the isolated space of the content scripts) before the real js you want to invoke.

zhuzhuor
- 91
- 4