Calling JavaScript from a MINERVA applet.
Here is the HTML and MINERVA code to call any JavaScript expression.
This code is compatible across Internet Explorer and Netscape.
In this example, the MINERVA applet asks client side JavaScript to display an alert message window in the browser.
The MINERVA source is:
:- package(jsobject).For technical background, refer to extensive external resources on Java, JavaScript, LiveConnect.main(Applet,_Args) :- jSObject_getWindow(Applet, JSWindow), jSObject_eval(JSWindow, 'alert("Look at the code!");', _), jSObject_eval(JSWindow, 'alert("But dont break it!");', _).
| scroll to top |
|