how to inject code into a webpage with executescript
I read in a post that I should use executescript and invokescript in tandem if I want to have my solution run javascript which is not already in the page. I cannot find an example of injecting the script into the page with executescript.
So if I had a basic page a and I have a function I want to inject b(), how would I inject it so that I can use it with invokescript? Where is there a help page or example?
***Edited by Moderator Marissa to update platform capability tags****