当前页面的活动元素

document.activeElement
原文地址:https://www.cnblogs.com/huqingyu/p/16402.html