1 <html> 2 <body onload="test();"> 3 <script> 4 function test() 5 { 6 document.getElementById("results").innerHTML = 7 "<p>Type of Java String object is: " + typeof(document.getElementById('applet').getString()); 8 } 9 </script> 10 11 <p>This test verifies that Java String objects are of the correct type when returned to JavaScript.</p> 12 13 <p>On success, the Java String object will be of type "object".<br/> 14 On failure, the type will be "function".<br/> 15 See Radar 4212626.</p> 16 17 <div id="results"> 18 </div> 19 20 <APPLET id="applet" code="StringTypeTest.class" codebase="resources" width="0" height="0"> 21 </APPLET> 22 23 </body> 24 </html> 25