This
OLCC programming example
page demonstrates getting a 2D drawing from PubChem using Jmol scripting.
Press the "test" button to evaluate the Jmol Script in the textarea below.
Feel free to modify the structure or Jmol Script and press test again.
// the JSmol load key for PubChem is : var id = ":" + prompt("enter a compound identifier", "morphine") load @id // for example, load $morphine var data = load(id) var js = "$('#result').html('"+data.replace('\n','\\n')+"')" javascript @js
result: