JSmol
JSmol is a JavaScript library for displaying three-dimensional chemical structures. It uses HTML5 features to render interactive 3D models and supports the same scripting language as Jmol.
Using JSmol
const appletKey = 'myJmol'
const JmolInfo = {
width: 500,
height: 500,
color: 'BACKGROUND_COLOR',
j2sPath: 'PATH_TO_J2S',
serverURL: 'PATH_TO_JSMOL_PHP',
use: 'html5'
}
const appletHtml = window.Jmol.getAppletHtml(appletKey, JmolInfo)
document.body.innerHTML += appletHtml
window.Jmol.script(window[appletKey], 'load PATH_TO_STRUCTURE')
window.Jmol.script(window[appletKey], 'background red')Recommended for you
Product
Ea.
2026 Wall Calendar, Tumbuka/English-Labeled, Monday-Start Layout, Wire-Bound, 11 x 8.5 in (27.9 x 21.6 cm)
Menthol Molecule Poster, Ball-and-Stick Model, Stylized, Belarusian-Labeled
Periodic Table Chart, 33.1 x 23.4 in (84.1 x 59.4 cm, Poster / Wall Chart), 32-Column Layout, Czech-Labeled
Bloch Sphere Poster, Greek/English-Labeled
Montenegrin Alphabet Chart, 8.3 x 11.7 in (21.0 x 29.7 cm, Desk Chart, Laminated), French-Labeled