Glass is opaque to light of frequencies that match its own natural frequencies.
Work Step by Step
This is because of resonance. The electrons in glass oscillate with much larger amplitudes when driven at their resonant frequencies, and hold onto this energy for a relatively long time. This results in energy transfer to neighboring glass atoms in the form of thermal energy rather than a re-emission of light.