mirror of
https://github.com/rn10950/RetroZilla.git
synced 2024-11-16 12:30:13 +01:00
71 lines
1.0 KiB
HTML
71 lines
1.0 KiB
HTML
<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>
|