зеркало из https://github.com/mozilla/gecko-dev.git
64 строки
957 B
HTML
64 строки
957 B
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>
|
||
|
|
||
|
<P>
|
||
|
|
||
|
<!--
|
||
|
<APPLET
|
||
|
ARCHIVE="ConsoleApplet.jar"
|
||
|
NAME="TrivialApplet"
|
||
|
CODE="TrivialApplet.class"
|
||
|
MAYSCRIPT="true"
|
||
|
WIDTH=200 HEIGHT=200>
|
||
|
<PARAM NAME="URL" VALUE="http://home.netscape.com">
|
||
|
</APPLET>
|
||
|
-->
|
||
|
|
||
|
<EMBED
|
||
|
TYPE = "application/x-java-vm"
|
||
|
NAME = "ConsoleApplet"
|
||
|
BORDER = "5"
|
||
|
WIDTH = "600"
|
||
|
HEIGHT = "400"
|
||
|
CODE = "netscape/console/ConsoleApplet.class"
|
||
|
>
|
||
|
</EMBED>
|
||
|
</P>
|
||
|
|
||
|
<HR>
|
||
|
|
||
|
<a href="ConsoleApplet.java">The source.</a>
|
||
|
|
||
|
</BODY>
|
||
|
</HTML>
|