Topic C1 Flashcards
How do client side programs avoid overloading of program related requests?
They distribute the load
Can client side programs replace server side programming?
No
Javascript is a programming language for ______-side programs
client
How can javascript code be implemented into an HTML file?
Either directly inserted or linked
Where can the script element be placed in an HTML document?
Anywhere
When does the browser process the script?
Whenever it reaches it within the HTML file
What’s the difference between the async and defer attributes?
async tells a browser to parse the HTML and JS code together, while defer tells the browser to parse the script after the page has been completely loaded
Defering a script is equivalent to…
Adding the script in at the end of the HTML file
What does a command indicate?
It tells the browser an action to take
What is debugging?
The process of locating and fixing a programming error
What is an object?
An entity within a browser or web page that has properties and methods
A ________ defines an object
property
A _______ acts upon a object
method
What are the 4 types of javascript objects?
Built-in, browser, document, and customized
BOM and DOM stand for what?
Browser object model and document object model
Objects within the object hierarchy are referenced by their ______ names
object
How can objects be referenced?
object1.object2.object3… where object 1 is at the top of the hierarchy, object2 is the child of object1, and so on
What is an object collection and how do you reference a specific member?
Objects organized into groups
collection[idref] or collection.idref
What is an efficient approach to reference an element? (Hint: id)
document.getElementbyId(id)
How do you access an objects property?
object.property
How do you modify an object using a method?
object.method(values)
How do you access the HTML code within an element?
element.innerHTML