JavaScript -- BOM programming
Hello! Hello, everyone, let's meet again ~ next, let's learn today's little knowledge~
I How to get HTML elements in JS?
Detailed explanation:
1. Through the id attribute in the tag
document.getElementById();
eg:
<1>. First, let's define a button and div
<!DOCTYPE html>
<html>
<head>
<meta charset= ...
Added by emcb_php on Tue, 01 Mar 2022 12:13:32 +0200