javascript and DOM Flashcards
DOM stands for?
document object model
what function overwrites contents of loaded page
.writeln()
___ JavaScript can be invalid XML
Inline. space after “
how can you hide a code from XML without using the comment blocks?
use CDATA
What is DOM used for?
it applies to parsed HTML and XML content in DOM systems
defines objects and interfaces to access and manipulate it
DOM 0 can address form controls using which attributes?
name
what does eval() do?
eval() computes expression’s value and result replaces it
what does onmouseover and onmouseout do?
onmouseover is when your mouse is hovering over that element it will then perform an action and onmouseout is when the mouse is no longer hovering over the element, how it would react.
what is Nodes in DOM 1 hierarchy?
document whole HTML or XML document element such as a table or tr attribute of element such as class or id text or CDATA entity escape sequence like ♅ for symbol for uranus
what is querySelector() and querySelectorAll()
querySelector() first node matching CSS selector argument. In querySelectorAll all the nodes matching CSS selector argument is chosen
which version of DOM only applies to HTML and doesn’t consider XML
DOM 0
which version of DOM views HTML components rendered in window as a hierarchy
DOM 0