What does this.parentNode.parentNode (parent node of parent node) mean?

What does this.parentNode.parentNode (parent node of parent node) mean?
The parent node of the parent node, for example, there is such a paragraph
HTML:

Copy code
The code is as follows:

<form id="form">
<div id="divA">
<div id="divB"> <input type="button" value="Delete" onClick="deleteMe(this.parentNode.parentNode);">
</div>
</div>
</form>

In this case, this.parentNode is divB, and this.parentNode.parentNode is divA. The so-called parentNode is the node on the previous layer.

<<:  What qualities should a good advertisement have?

>>:  IDEA complete code to connect to MySQL database and perform query operations

Recommend

An article teaches you how to use js to achieve the barrage effect

Table of contents Create a new html file: Create ...

MySQL master-slave replication delay causes and solutions

Table of contents A brief overview of the replica...

Tutorial on how to use profile in MySQL

What is a profile? We can use it when we want to ...

Understanding MySQL clustered indexes and how clustered indexes grow

In this note, we briefly describe What is the B+T...

How to fix some content in a fixed position when scrolling HTML page

This article mainly introduces how some content i...

HTML tag meta summary, HTML5 head meta attribute summary

Preface meta is an auxiliary tag in the head area...

Node uses async_hooks module for request tracking

The async_hooks module is an experimental API off...

Node script realizes automatic sign-in and lottery function

Table of contents 1. Introduction 2. Preparation ...

Summary of several APIs or tips in HTML5 that cannot be missed

In previous blog posts, I have been focusing on so...

The pitfalls and solutions caused by the default value of sql_mode in MySQL 5.7

During normal project development, if the MySQL v...

A brief discussion on JS packaging objects

Table of contents Overview definition Instance Me...

How to implement responsive layout in vue-cli

When we are doing front-end development, we will ...