๋ฐ์ํ
[์ถ์ฒ-์ ํ๋ธ ๋ ธ๋ง๋ ์ฝ๋ Nomad Coders]
const title = document.getElementById("title");
title.innerHTML = "Hi! From JS";
console.dir(title);
const title = document.getElementById("title");
title.innerHTML = "Hi! From JS";
title.style.color = "red";
console.dir(title);
const title = document.getElementById("title");
title.innerHTML = "Hi! From JS";
title.style.color = "red";
console.dir(document);
const title = document.getElementById("title");
title.innerHTML = "Hi! From JS";
title.style.color = "red";
document.title = "I own you now";
const title = document.querySelector("#title");
title.innerHTML = "Hi! From JS";
title.style.color = "red";
document.title = "I own you now";
id๋ก ์ฐพ์ผ๋ ค๋ฉด ์ด๋ ๊ฒ ํ๋ค
๋ฐ์ํ
'JavaScript > Vanilla JS' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[๋ฐ๋๋ผJS๋ก ํฌ๋กฌ ์ฑ ๋ง๋ค๊ธฐ] If, else, and, or (0) | 2021.02.26 |
---|---|
[๋ฐ๋๋ผJS๋ก ํฌ๋กฌ ์ฑ ๋ง๋ค๊ธฐ] Events and event handlers (0) | 2021.02.26 |
[๋ฐ๋๋ผJS๋ก ํฌ๋กฌ ์ฑ ๋ง๋ค๊ธฐ] JS DOM Functions (0) | 2021.02.26 |
[๋ฐ๋๋ผJS๋ก ํฌ๋กฌ ์ฑ ๋ง๋ค๊ธฐ] Your first JS Function (0) | 2021.02.26 |
[๋ฐ๋๋ผJS๋ก ํฌ๋กฌ ์ฑ ๋ง๋ค๊ธฐ] Organizing Data with Objects (0) | 2021.02.26 |
๋๊ธ