Week 4: Introducing JavaScript and the HTML Flashcards

1
Q

What is a Browser Object Model (BOM)?

A

The collection of objects that the browser makes available for you to use with JavaScript.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the BOM object hierarchy?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is a BOM window object?

A

The frame of the browser and everything associated with it, such as the scrollbars, navigator bar icons, and so on.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the BOM history object?

A

The history object contains the history of pages visited by the user,

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What behaviours of the history object do the go( ), back( ) and forward( ) methods of the history object implement?

A

For example, if you wanted to return the user to the page before the previous page, you’d write this:

history.go(-2);

To go forward three pages, you’d write this:

history.go(3);.

Note that go(-1) and back() are equivalent, as are go(1) and forward().

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the BOM location object?

A

The location object contains lots of potentially useful information about the current page’s location. Not only does it contain the URL (Uniform Resource Locator) for the page, but also the server hosting the page, the port number of the server connection, and the protocol used.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the BOM navigator object?

A

The navigator object contains lots of information about the browser and the operating system in which it’s running. It is suggested that this be called the browser object.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is the BOM screen object?

A

The screen object property of the window object contains a lot of information about the display capabilities of the client machine. Its properties include the height and width properties, which indicate the vertical and horizontal range of the screen, respectively, in pixels.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is the BOM document object?

A

The actual page itself.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is the BOM images array?

A

Location where images are stored for the website.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is the difference between DOM and BOM?

A

The Browser Object Model is a larger representation of everything provided by the browser including the current document, location, history, frames, and any other functionality the browser may expose to JavaScript. The Browser Object Model is not standardised and can change based on different browsers. The Document Object Model is standardised and is specific to current HTML document. It is exposed by the Browser Object Model (i.e., DOM is a subset of BOM).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is the difference between the BOM window object and the document object?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is a node?

A

In the Level 1 DOM, each object, whatever it may be exactly, is a Node.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is an element node?

A

Decsribes what the thing actually is eg a paragraph, body

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is an attribute node?

A

A node that explains how an element may look. This is never a child node of an element node.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What does a DOM structure tree look like, draw (explain) some important aspects

A
17
Q

What is the relationship between HTML elements and DOM objects?

A

Each HTML element that makes up a part of the definition / description of a Web page is represented by an object in the DOM of the page.

18
Q

What is the relationship between HTML attributes and DOM object property members?

A

Each ‘attribute’ of an HTML element is a property member of that element’s object in the DOM.

19
Q

What is the relationship between HTML attributes, DOM object property members and CSS style definitions?

A

Each statement in a CSS style definition is specifying a value for a property member of that HTML element’s object in the DOM.

20
Q

What is JavaScript?

A

High level computer language that is often used to add interactive elements into web browsers.

21
Q

What are the three compents of a web page?

A

HTML- content of the webpage

CSS- presentation

JavaScript- Behaviour