在文檔獲取焦點後輸出文本信息: var x = document.getElementById( "demo" ); if (document.hasFocus()) { x.innerHTML = "文檔已獲取焦點。" ; } ...
確定! 回上一頁