輸出一些文本,如果該文檔具有焦點:. var x = document.getElementById("demo"); if (document.hasFocus()) { x.innerHTML = "The document has focus."; } ...
確定! 回上一頁