How to clear MSketch window from JavaScript?

User 111f46f5ab

17-02-2005 16:33:25

Is there a JavaScript method for clearing the sketch window? I want to start with a fresh window each time my script cycles, and I don't want to reload the entire applet each time.

ChemAxon 7c2d26e5cf

18-02-2005 09:01:29

Load an empy molecule to clear the screen:


Code:
document.MSketch.setMol(" ");

User 111f46f5ab

18-02-2005 15:26:43

Thanks! That is simple.





I wondered whether setMol would accept a null argument, and I guess I should have just tried it to see.