我有一個div
我想隱藏當我按下F2 ......一切工作正常,除了當重點是下面這個div的iframe ...onkeyup事件不工作的時候專注於iframe中
<script>
document.onkeyup = KeyCheck;
function KeyCheck(){
var KeyID = event.keyCode;
switch(KeyID)
{ case 113:
document.getElementById("test").style.display = "none" }
break;
}
</script>
但是就像我說的,當關注iframe時,這段腳本沒有任何作用......我哪裏錯了?