I am looking to write my first Java applet (with a difference). I want to write an applet that manipulates the DOM of the page in which the applet is placed. A suitable example would show how:
the innerHTML of a DOM element can be changed
Call a javascript function and pass data from the Java applet, to the javascript function
I have searched the internet - but so far, have not come accross any such example. Is anyone aware of such an example?. If yes, please post a link, or a snippet that shows how to achieve the functionality listed above, if possible.
www.java2s.com is alsways a good starting point to look for examples.
http://www.java2s.com/Code/JavaScript/Development/UsingJavaScriptinanApplet.htm