Click to See Complete Forum and Search --> : no display.


zhshqzyc
July 24th, 2007, 11:07 AM
I am going to display a sentence in an applet.But why no display.
thanks.

<html>
<title>TEST</title>
<head>

<script type="text/javascript">
function myFunction()
{
return ("Hello, have a nice day!")
}
</script>
</head>
<body bgcolor="white">
<applet code = "Combox.class" codebase="."
archive="TestCell4.2.jar"
width ="700" height = "700">
<parm name="buttonlabel" value="Toggle Drawing">
</applet>
</html>

PeejAvery
July 24th, 2007, 02:34 PM
Well, two things...

1. Java and JavaScript are two different languages. It looks like you are trying to make the JavaScript tell the Java applet what to do. That won't work.

2. It is <param> not <parm>.