This test page will make a JavaScript-to-Java call in the body onload event, the java implementation will delay the call for a period of time (default 10 seconds), if we click the following button during this interval, we’ll see that the JavaScript engine is "available" for processing other events, while the onload event was not completely processed.

Your browser does not support the applet tag.