Creating first Physlet page

Step 4: Make the object do something

<html>
<head>
<title>My Physlet</title>

<Script language=JavaScript>
function initialize(){
 document.myPhyslet.setShapeRGB(255,0,0);
 document.myPhyslet.addObject("circle", "x=-14+4*t,y=-7+7*t-1*t*t,r=10");
 document.myPhyslet.forward();
}
</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>