在文档获取焦点后输出文本信息: var x = document.getElementById("demo"); if (document.hasFocus()) { x.innerHTML = "文档已获取焦点。"; } ...
確定! 回上一頁