I\'m looking for a reliable way to get the width of the window in em units using javascript. I was surprised to see that jQuery will only return a result in pixel measurements.
Simple, since we know 1em = 16px
1em = 16px
var window_width_em = 1/16 * window_width_px;