Is it possible to get the width of the window in em units using javascript? May 17, 2023 by Tarik This seems to work: $(window).width() / parseFloat($("body").css("font-size"));