RetroZilla/plugin/oji/MRJ/testing/TrivialApplet/TrivialApplet.html

71 lines
1.0 KiB
HTML
Raw Normal View History

2015-10-21 05:03:22 +02:00
<HTML>
<HEAD>
<TITLE>TrivialApplet</TITLE>
</HEAD>
<SCRIPT LANGUAGE="JavaScript">
var System = java.lang.System;
function writeln(text)
{
document.write("<P>", text, "</P>");
}
function println(text)
{
System.out.println(text);
}
function examineApplets()
{
var applets = document.applets;
println("applets.length = " + applets.length);
}
function examineTrivialApplet(applet)
{
// applet.print("url = " + applet.urlField.getText());
println("url = " + applet.urlField.getText());
}
</SCRIPT>
<!-- <BODY onload="examineApplets();"> -->
<BODY>
<P>
<APPLET
ARCHIVE="AppletClasses.jar"
NAME="TrivialApplet"
CODE="TrivialApplet.class"
MAYSCRIPT="true"
WIDTH=200 HEIGHT=200>
<PARAM NAME="URL" VALUE="http://home.netscape.com">
</APPLET>
</P>
<HR>
<a href="TrivialApplet.java">The source.</a>
<form>
<P>
<input type=button
onclick="examineApplets();"
value="examineApplets()">
<input type=button
onclick="examineTrivialApplet(document.TrivialApplet);"
value="examineTrivialApplet()">
</P>
</form>
</BODY>
</HTML>