Thought window.blur and window.focus might be properties, turned out they were functions - should have checked the docs first, or even done typeof window.blur - doh
External references: