Two cents from this side of the Atlantic:

<html>
<head>
<script type="text/javascript">
function newProblem(){
 document.getElementById("JME").reset();
}
</script>
</head>

<body>
<applet id="JME" archive="JME.jar" code="JME.class" width="400" height="400">
<param name="jme" value="22 23 O 2.80 -9.04 O 4.02 -6.94 O 4.02 -11.14 C 7.65 
-10.44 C 
11.29 -6.94 C 12.50 -9.04 C 6.44 -11.14 C 12.50 -6.24 C 13.71 -8.34 C 6.44 
-8.34 N 10.08 -
9.04 N 8.86 -8.34 C 4.02 -8.34 C 11.29 -8.34 C 7.65 -9.04 C 5.23 -10.44 C 13.71 
-6.94 C 
5.23 -9.04 O 14.93 -6.24 C 14.93 -9.04 O 14.93 -10.44 O 16.14 -8.34 1 13 2 2 13 
1 3 16 1 4 
7 2 4 15 1 5 8 2 5 14 1 6 9 1 6 14 2 7 16 1 8 17 1 9 17 2 10 15 2 10 18 1 11 12 
2 11 14 1 12 
15 1 13 18 1 16 18 2 17 19 1 9 20 1 20 21 1 20 22 2">
</applet>

<br>
<input type="button" onClick="document.getElementById('JME').reset();" 
value="reset that">
<input type="button" value="reset using function" onClick="newProblem()">
<a href="javascript:void(document.getElementById('JME').reset())">reset that</a>
<a href="javascript:void(0)" 
onClick="document.getElementById('JME').reset()">reset 
that</a>
</body>
</html>


All work in Firefox/Win and Safari/Win
Curiously, Firefox is clever (or stupid?) enough to also accept JME.reset() 
despite I am not 
using a "name" attribute in the applet.

I have put the param to initially load a molecule because, for some "a href" 
tests, the page 
just gets reloaded, and one cannot see the difference between a cleared JME and 
a page 
reload if the applet starts empty

So you do have a mystery, Phil ;-)




------------------------------------------------------------------------------

_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to