Invoking JS Script function from webpage using Inject activity

Hi Friends,

Greetings!!

I need to access a Javascript function from a HTML which is already running.
How to do that?

**Example:**
**<html>**
**<input type = 'button' onClick='callMyFunction()'>Submit</input>**
**<script>**
**  function callMyFunction()   {     alert('Hi I am Here');  }**
**  function callSample()         { alert('Welcome');}**
**</script>**
**</html>**

Question is: How to call the function “callSample()” through Inject activity of Uipath?

Thanks a lot,
Ramani Nagarajan

Hi @ramani600091,
Could you precise what would you like to achieve with this HTML example?