Can we do this on the window or document instead of having to create a DOM element?