-
JavaScript
(js-1210
, 2019.07.05)
목차
document.querySelectorAll() 예제 - 일치요소 모두 선택
document.querySelectorAll() 정의
document.querySelectorAll() 구문
document.querySelectorAll() 예제 - 태그명 경우
document.…
-
JavaScript
(js-1209
, 2019.07.05)
document.querySelector()
<h1 class="hz">홈짱닷컴</h1>
<h2 class="hz">Homzzang.com</h2>
<h3 class="hz">홈페이지 제작관리</h3>
<b…
-
JavaScript
(js-1200
, 2019.07.05)
목차
images 집합 예제 - 모든 이미지 개수
images 집합 정의
images 집합 구문
images 집합 속성
images 집합 메서드
images 집합 예제 - (index / id) 사용해 1번째 이미지 주소 얻기
images 집합 예제 - 1번…
-
JavaScript
(js-1197
, 2019.07.05)
목차
document.getElementsByTagName() 예제 - 태그명으로 요소 얻기
document.getElementsByTagName() 정의
document.getElementsByTagName() 구문
getElementsByTagName() 예제 - 지정 태그명 갖는 요소 개수…
-
JavaScript
(js-1194
, 2019.07.05)
목차
getElementById() 예제 - id 선택자 얻기
getElementById() 정의
getElementById() 구문
getElementById() 이슈 - id 경우 단독 사용 가능
getElementById() 예제 - id 선택자 얻기…
-
JavaScript
(js-1189
, 2019.07.05)
document.embeds 예제
<embed src="aaa.swf">
<embed src="bbb.swf">
<button onclick="homzzang()">클릭</button>
<p id="demo"></p>
…
-
JavaScript
(js-1183
, 2019.07.05)
목차
document.doctype 예제 - 현재 웹문서의 DTD 정보 반환
document.doctype 정의
document.doctype 구문
document.doctype 예제 - 현재 웹문서의 DTD 정보 반환
<button…
-
JavaScript
(js-1172
, 2019.07.05)
목차
document.cookie 예제 - 세미콜론( ; )으로 분리된 key=value 쌍 형식의 문서 쿠키를 설정/반환
document.cookie 정의
document.cookie 구문
Cookie (쿠키) / LocalStorage (로컬스토리지) 차이점
&nbs…
-
JavaScript
(js-1170
, 2019.07.05)
document.body 예제
<button onclick="homzzang()">클릭</button>
<script>
function homzzang() {
document.body.style.backgroundColor = "yellow";
…
-
JavaScript
(js-1168
, 2019.07.05)
document.applets 예제
<button onclick="homzzang()">클릭</button>
<p id="demo"></p>
<script>
function homzzang() {
var x = do…