This OLCC programming example page demonstrates getting a 2D drawing from the Chemistry Development Kit (CDK) using JavaScript.
Source https://cdkdepict-openchem.rhcloud.com/depict.html
Press the "test" button to evaluate the JavaScript in the textarea below.
Feel free to modify the JavaScript and press test again.

SMILES:




url:
image: