I have a Webrowser with some settings that are changed using javascript. I\'m trying to use the example here but can\'t get the correct syntax
the script looks like
You have to pass an array of Object as second parameter. You can do it this way :
Object[] parameters = new Object[1]; //assuming your JS function has one parameter
parameters[0] = (Object)"yourStringParameter"; //for example the parameter is a string
yourBrowser.Document.InvokeScript("scriptName", parameters);