Javascript Notes
JavaScript
Data Types
Variables
Operators
Functions
Conditional Statements and Loops
Arrays
Objects
DOM Elements
Cookies
Pop Up Box
Exception Handling
Heading
Q
1
What is DOM Programming Interface?
Ans
The Document Object Model (DOM) connects web pages to scripts or programming languages by representing the structure of a document—such as the HTML representing a web page—in memory. Usually it refers to JavaScript, even though modeling HTML, SVG, or XML documents as objects are not part of the core JavaScript language.
Q
2
Define DOM Methods.
Ans
HTML DOM methods are actions you can perform (on HTML Elements).
Q
3
Define DOM Properties.
Ans
HTML DOM properties are values (of HTML Elements) that you can
Q
4
What is Event Handling?
Ans
Event Handling is a software routine that processes actions, such as keystrokes and mouse movements. It is the receipt of an event at some event handler from an event producer and subsequent processes.
Q
5
What is Event Bubbling?
Ans
While developing a webpage or a website via JavaScript, the concept of event bubbling is used where the event handlers are invoked when one element is nested on to the other element and are part of the same event. This technique or method is known as Event Bubbling. Thus, while performing event flow for a web page, event bubbling is used. We can understand event bubbling as a sequence of calling the event handlers when one element is nested in another element, and both the elements have registered listeners for the same event. So beginning from the deepest element to its parents covering all its ancestors on the way to top to bottom, calling is performed.