|
Rank: Member Groups: Member
Joined: 12/19/2020 Posts: 14
|
When I try to use getEventListeners in EvalScript, getEventListeners is not defined error will occur.
var events = (string)webView.EvalScript(@"JSON.stringify(getEventListeners(document.forms[0]))");
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
Hi,
getEventListeners is not a global function. It is on eoapi object. So you would need to use eoapi.getEventListeners.
Thanks!
|
|
Rank: Member Groups: Member
Joined: 12/19/2020 Posts: 14
|
How to use eoapi.getEventListeners within a webview?
|
|
Rank: Member Groups: Member
Joined: 12/19/2020 Posts: 14
|
ok got it:
var events = (string)webView.EvalScript(@"JSON.stringify(eoapi.getEventListeners(document.forms[0]))");
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
Great!
|
|