‘’’
TODO supply a title</head>
<body>
The system will close after <input type="text" id ="countDown" style="width: 24px; border: none; text-align: center;"/> second
<script>
var second = 10;
function countDown(){
seccond = seccond - 1;
if(second !== 0){
document.write("count down");
document.getElementById("countDown").value = seccond;
setTimeout("countDown()",1000);
}
else {
document.window.alert("abc");
}
}
countDown();
</script>
</body>
'''
Khi mình chạy thì nó không có đếm ngược con số
Nó hiển thị thé này và ra lỗi thế này


83% thành viên diễn đàn không hỏi bài tập, còn bạn thì sao?