Understanding javascript eventPhase
When you click somewhere on a web page, the system will create a click event. You should realize that you are probably not clicking on single DOM node although you […]
When you click somewhere on a web page, the system will create a click event. You should realize that you are probably not clicking on single DOM node although you […]
To get the event listeners bound to an element in Firefox, just right-click on the element, click the “Inspect” menu item, then click the “event” badge next to the element […]
After writing your favorite Firefox extension, you must know how to load it into Firefox: Type “about:debugging” in the address bar of your Firefox browser and press enter. Click “This […]
I often see some “programming gurus” use strange advanced syntax such as this one: somefunction(\WP_Query $query) { …. } This is a piece of php code. You know, usually php […]
The differences between pseudo-class and ordinary class are: We can use any string for a class but we cannot use any string for a pseudo-class. Pseudo-classes are predefined. They are: […]
We’ve talked about the event model of javascript. Related to this topic is the usage of preventDefault(),stopPropagation , return false, returnValue=false, cancelBubble=true, which is very confusing. Among these, preventDefault() is […]
You may have known quite a few methods to bind a handler to the click event on an element, two of which are using the onclick attribute and the onclick […]
An http header is like: header-name:header-value The header-name is immediately followed by a colon. There can be one or more spaces between the header-value and the colon. There can be […]
Although it seems very easy to understand what an inline element is, I have not found an accurate definition of inline element. Somebody says inline elements are those displayed in […]
When you access a url like https://myprogrammingnotes.com/category/uncategorized of a WordPress site, which file does WordPress use to serve the reply? Do not think there is a file called uncategorized that […]