Error on Trying to a Execute JavaScript Function (Defined in HTML of the Page) in Chrome

trying to execute a function defined in the html

when run through web developer -> console it works, but when trying to run from KM it doesn't

Error in console
image

@JMichaelTX @ccstone would love your expertise here. Thanks. :slight_smile:

@forums2012, need a lot more details about your problem to be of help.
Most important, is the URL or HTML of the target web page.

Please read:
Tip: How Do I Get The Best Answer in the Shortest Time?

I did a workaround for this by copying the function defined in the html and executing that using KM rather than simply sending the function_name()

From what I gathered, in order to run a function using KM, it needs to be defined from KM as well, it cannot pickup functions from html I think.