DOM

Wing Chun

the Document Object Model (DOM) is a cross-platform and language-independent convention for representing and interacting with objects in HTML, XHTML and XML documents.

the DOM is an application programming interface (API) for representing a document (such as an HTML document) and accessing and manipulating the various elements (such as HTML tags and strings of text) that make up that document.

JavaScript and the DOM form a powerful combination.

use DOM to find the links with the methods: getElementById and getElementsByTagName, which returns the element as an object, then check for the special class.