WHITE PAPERS  |  PRICING  |  DOWNLOADS

 

username

password

 

 

 

 

 

 

 

 

 

 

  Server Edition Details  

 

  > Features  

  > Key Benefits  

  > Screenshots  

  > Standards Supported  

  > Pricing  

  > Download Now

 

 

  Developer Resources  

 

  > API Documentation  

  > Developers Guide  

  > Code Examples  

  > Updated Builds  

  > Technical Articles  

 

 

 

 

 

Jump to:

General WebRenderer Functions

  WebRenderer example code base.

 

Advanced WebRenderer functions

 

Application test examples

 

Deploying WebRenderer

WebRenderer DOM

  

  

 

WebRenderer and JavaScript

 

 

 

WebRenderer and JavaScript

WebRenderer has methods to communicate directly to JavaScript in HTML documents. The IBrowserCanvas method executeScript(String script) handles the communication to JavaScript and takes a JavaScript String as an argument.

IBrowserCanvas browser = BrowserFactory.spawnMozilla();
//Showing a JavaScript alert dialog
browser.executeScript("alert('From Java')");

//Setting the background color
browser.executeScript("document.bgColor='Yellow'");

Using the executeScript method powerful JavaScript DOM methods and dynamic page authoring is available.
 

  top

 

 

 Sun, Sun Microsystems, and the Sun Logo are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other countries 

Privacy Policy  |   Disclaimer