Upgrade to remove ads
Terms in this set (40)
The top-level object in the browser object model is the Window object, which represents a web browser window.
The objects in the BOM for any given web page depend on the contents of the page.
The getElementsBySelector() method returns a collection of elements matching a specified selector.
Internet Explorer 8 does not support the textContent property.
node attached with the appendChild() method is always added as the last child element of the parent element.
When you open a new web browser window, you can customize its appearance using the ____ argument of the window.open() method.
In order to make a window the active window, you use the ____ method of the Window object.
The ____ method is used to cancel a setTimeout() method before its code executes.
The ____ method repeatedly executes the same code after being called only once.
The ____ method is used to clear a setInterval() method call.
The History object contains a single property, the ____ property, which contains the specific number of documents that have been opened during the current browser session.
The ____ object is used to obtain information about the current web browser.
Which method does NOT return a node list or HTML collection?
Which method returns all h1 elements in a document?
querySelector("p figure img")
Which method returns all elements in a document that match the selector p figure img?
Which is the correct way to reference the href attribute of the element with the id value homeLink?
Which results in a node that exists independently of the DOM tree?
Which method adds a node to a parent node before one or more existing child nodes?
the DOM tree
The DOM hierarchy is also known as ____.
Which method returns the element created by the HTML tag pair <p id="weekend" class="first"></p>?
Which method returns a single element?
A set of connected nodes that are not part of a document is known as a(n) ____.
The ____________________ object represents a web browser window.
document object model
The Document object branch of the browser object model is represented by its own object model called the ______________________________.
One way of referring to the Window object is by using the ____________________ property, which refers to the current Window object.
For security reasons, you should use the ____________________ property when possible instead of the innerHTML property.
Each item in the DOM tree is known as a(n) ____________________.
the windoe object represents the browser window. It's related to the document object because the web page is diplayedin it. The window is the parent object of all other objects.
Explain the relationship between the Window object and the Document object.
The first h2 element in a web page is created with the following tag pair: <h2 id="local" class="section"></h2>. Provide three different examples of code to reference this element using three different methods.
inner HTML allows you to acces adn write HTML tags along with text, while text Content strips these out. Text conent strips out striclty the text and leaves out the code.
What is the difference between the content accessed by the textContent and innerHTML properties?
reference an attribute of an element
reference CSS propery of element
What is the difference in syntax between referencing a CSS property of an element and referencing an attribute of an element? Give an example of each.
appendChild() is the most basic bitch of all of them. Adds node as a child of a parent node that is specified. Always appended after any existing childing nodes.
Use insertBefore() when you need to place it in a specific place among existing bitches.
Name two ways to add a node to the DOM, and explain when you'd use each.
through thigns like openWin whcih is created by the values specified in the windows.open() method.
How can you control a new window from the browser window that created it?
SetTImeout () executes code after a specific amount of time has elapse. It's sister function is clearTimeout()
The setInterval repeatedly executes code after an amount of time has passed. it's sister function is clearInterval.
Describe the differences between the setTimeout() and setInterval() methods, and specify the method you use to cancel each.
No. The information is private. It's an essential security feature.
Is the Navigator object commonly used in determining which type of browser a user is running? Why or why not?
Assign values to the left and top options of the options argument. Subtract width of window from screen width and divide the remainder by two, and assign resut to left option. Same goes for vertical window. Subtract height of the window from screen height, divide remaining by two, and assign reult to top option.
How can you center a web browser window in the middle of the display area?
THIS SET IS OFTEN IN FOLDERS WITH...
Debugging and Error Handling
Enhancing and Validating Forms
YOU MIGHT ALSO LIKE...
JS Chapter 5
Chapter 5 Working with the Document Object Model (…
ITP-140 Unit 2 Test Set 2
OTHER SETS BY THIS CREATOR
VB Test 3
Java Test 2
VB Exam 1
OTHER QUIZLET SETS
Test Four-Ch 14
Physical Science Vocabulary Project
Exam 1 (Chapters 1-6)