In order to invoke a JavaScript function we must access the DOM from the Silverlight application. This can be done with the help of the System.Windows.Browser.HtmlPage class. Here it is how it's done:
HtmlPage.Window.Invoke( "Function_Name", new object[] { //Array of paramaters that must be passed to the function } );
We call the Invoke method of the Window property, which takes the name of the function and an array of its arguments as parameters.
That's it!