Creating first Physlet page

Step 3: Add an object

<html>
<head>
<title>My Physlet</title>
<Script language=JavaScript>
function initialize(){
    document.myPhyslet.addObject("circle", "x=0,y=0,r=10");
}
</script>
</head>
<body>
<h1>My Physlet</h1>
<applet width=300
 height=200
 name=myPhyslet
 id=myPhyslet
 codebase = "../classes"
 archive="Animator4_.jar,STools4.jar"
 code=animator4.Animator.class
>
</applet>
<br>Click <a href="JavaScript:initialize()">here</a> to start.
</body>
</html>
Go to next step