The this keyword can be used to operate only the clicked HTML tag. The usage is as follows:
<!doctype html> <html> <head> <meta charset="utf-8"> <title>Untitled document</title> <script> function test(obj){ obj.innerHTML = 'ccc' } </script> </head> <body> <h4 onClick="test(this)">aaa</h4> <h4 onClick="test(this)">bbb</h4> </body> </html>