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

69 строки
1.0 KiB
HTML
Исходник Обычный вид История

1998-12-12 04:33:27 +03: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();">
<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>