This demo originally used specific FITS sample data that this site no longer ships, so it displays the bundled example.fits.gz instead. Restore the original data/ files to see it as intended.
JS9 Demo: creating a JS9 instance dynamically
Choose a method of creating a JS9 instance:
display image in the existing visible canvas below
display image in a dynamically created light-weight window
display image in a dynamically created new window
display image in a new div, which is appended to the page