38 lines
692 B
HTML
Executable file
38 lines
692 B
HTML
Executable file
<!DOCTYPE html>
|
|
<html lang="en">
|
|
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>ToDo List</title>
|
|
|
|
<script>
|
|
|
|
window.addEventListener("load", main);
|
|
|
|
function main() {
|
|
document.getElementsByTagName("div")[0].addEventListener("click", onClick('g'));
|
|
}
|
|
|
|
function onClick(reg) {
|
|
if (reg = 'g') {
|
|
document.getElementsByTagName("div")[0].appendChild(document.createElement("p"))
|
|
|
|
}
|
|
}
|
|
|
|
</script>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
<div>
|
|
<h3>Galicia</h3>
|
|
</div>
|
|
<div>
|
|
<h3>Canarias</h3>
|
|
</div>
|
|
|
|
</body>
|
|
|
|
</html> |