HTML DOM readyState의 속성
정의 및 사용
readyState의 속성은 현재 문서 (로드 ...)의 상태를 반환합니다.
이 속성은 다음 값을 반환합니다 :
- 초기화되지 않은이 - 아직로드가 시작되지 않은
- 로드 -로드
- 양방향 -로드되어, 사용자가 문서와 상호 작용을 시작할 수
- 전체 -로드 완료
문법
document.readyState
브라우저 지원
모든 주요 브라우저는 readyState의 속성을 지원
예
예
로드 된 문서의 현재 상태를 반환합니다 :
<html>
<body>
Loading status:
<script>
document.write(document.readyState);
</script>
</body>
</html>
<body>
Loading status:
<script>
document.write(document.readyState);
</script>
</body>
</html>
»시도
문서 객체