document 객체
document 객체 : document는 body 영역을 의미한다. document에 속성이나 메서드를 넣으면 body영역을 편집할수 있다.
document.alll
- 정의된 배열
document.onmousedown=click
- body영역에서 마우스를 불렀을 경우 click이라는 함수를 수행
doucument.write("내용".bold() )
- body에 해당 내용을 굵게 쓴다
doucument.writeln("내용".bold() )
- body에 해당 내용을 굵게 쓴 후 다음줄로 이동
document.bgColor ="red"
- body의 배경색 지정
document.fgColor ="red"
- body의 글자색 지정
document.linkColor ="red"
- body의 방문한 적이 없는 링크지점의 색상 지정
document.alinkColor ="red"
- body의 해당 사이트로 이동 중에 있는 링크지점의 색상 지정
document.vlinkColor ="red"
- body의 방문한 적이 있는 링크지점의 색상
document.title("타이틀문구")
- html문서상에서 <title>과 </title> 사이에 들어갈 문구
document.form(i).
- html문서에서 사용된 <form> 태그에 관한 정보를 저장하는 속성으로 <form>태그가 사용된 순서에
따라 차례로 배열에 저장
document.lastModified
- 현재 html문서에서 마지막으로 수정된 날짜를 출력
document.location
- 현재 웹페이지의 url정보 예)document.location="사이트 url" -> 해당 사이트로 이동