<SCRIPT LANGUAGE="JavaScript">
function callJava() {
    var Java = Packages.java.lang.System.err
    Java.println("This statement is brought to you courtesy of Java")
<INPUT TYPE="button" NAME="testButton" VALUE="Call Java" 
onClick="callJava()">