If your application contains a web browser control to show certain web page, can the web page interact with your application by script language? Yes, it can.
There's a sample on MSDN, it's very short but clear, please refer to the following link:
Reference on MSDN