Getting the IP from JavaScript

If you give the Applet a name, you can access it's ip() method directly from JavaScript. But this won't always work, as many browsers have access from JavaScript to Java disabled.
<BODY onload="document.foo.bar.value=document.xyz.ip()">
<FORM NAME="foo"><INPUT TYPE="text" NAME="bar"></FORM>
<APPLET CODE="MyAddress.class" NAME="xyz" MAYSCRIPT WIDTH=2 HEIGHT=2></APPLET>
results in:

Return to main page!