Hi All
I'm trying to run a script when the
applet gets downloded,or at least to get respond when i click on it.I can't make that works.
here is my html file and
java file:
Html file:
//==============
<html>
<body>
<script language="javascript" >
function show()
{
var y=88;
document.writeln("hello world ");
return y;
}
</script>
<object code="TextFieldApplet10.class" id="matt" width="500" height="200" onLoad="show();" >
</object>
<input type="button" value="Click on me " onClick="alert('Hee hee!');"></a>
</body>
</html>
//=============
Here is the java file"
//=============
import java.awt.*;
import java.applet.*;
public class TextFieldApplet10 extends Applet
{
public void init()
{
TextField txt1 = new TextField(" ");
add(txt1);
}
}
//=============
thanks for your time.