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.
Cardinal Directions Poster, Arabic/English-Labeled
Months of the Year Poster, Galician-Labeled
2026 Wall Calendar, Belarusian-Labeled, Sunday-Start Layout, Wire-Bound, 11.7 x 8.3 in (29.7 x 21.0 cm)
Periodic Table Chart, 33.1 x 23.4 in (84.1 x 59.4 cm, Poster / Wall Chart), 18-Column Layout, Swahili/English-Labeled
2027 Wall Calendar, Kalmyk-Labeled, Sunday-Start Layout, Poster / Wall Print, 23.4 x 33.1 in (59.4 x 84.1 cm)