You can use Application.ExternalCall to call JavaScript functions on the page the web player is displayed in.