Microsoft
Sun Microsystems
Netscape
Oracle
element.innerHTML
element.value
element.content
element.innerText
onchange
onkeydown
oninput
onkeypress
document.getElementByClassName()
document.getElementsByClassName()
document.querySelectorAll(".class")
Both b and c
onsize
onresize
onzoom
onexpand
getElement()
getElementById()
getId()
queryElement()
CSS
Python
HTML
JavaScript
removeAttr()
deleteAttribute()
removeAttribute()
deleteAttr()
insertBefore()
insertAfter()
appendChild()
prependChild()
onsubmit
onreset
onerror
onexception
onwarning
onfail
What will the following JavaScript code do?
var element = document.getElementById("myDiv");element.remove();
Remove the element with the ID "myDiv" from the DOM
Remove all child elements inside the element with the ID "myDiv"
Hide the element with the ID "myDiv"
Move the element with the ID "myDiv" to a different location
LimeScript
ECMScript
Coffee Script
ECMAScript
.html
.java
.js
.css
innerHTML
innerText
textContent
All of the above
hasChildNodes()
childNodes
children
hasChildren()
onedit
onupdate
insertPrevious()
appendBefore()
addBefore()
upload
load
onmouseout
onmouseover
element.background = "red";
element.style.backgroundColor = "red";
element.style.background = "red";
element.css.backgroundColor = "red";
stopImmediatePropagation()
preventDefault()
stopPropagation()
cancelPropagation()
Client Side
Server Side
Both A and B
None of These
getElement(id)
getElementById(id)
elementById(id)
element.addEventListener("click", function);
element.addEventHandler("click", function);
element.attach("click", function);
element.on("click", function);
shift()
pop()
remove()
delete()
To Perform Server Side Scripting Opertion
To Execute Query Related to DB on Server
To add interactivity to HTML Pages
To Style HTML Pages
push()
unshift()
onprogress
onload
oncomplete
When the function is defined as a looping statement
When the function is defined as expressions
When the function is predefined
onblur
onfocus
onclick
wait()
pause()
setTimeout()
setInterval()
Access databases directly
Reduce server load and increase interactivity
Compile HTML code
Replace server-side scripting
document.getElementByTagName()
document.getElementsByTagName()
document.querySelectorAll()
document.tagName()
onblur fires when an element loses focus, and onfocus fires when an element gains focus
Both events fire when the window is minimized
Both events trigger when the page is loaded
onblur fires when an element is clicked, and onfocus fires when the mouse moves over an element
onmove
onscroll
getElementByTagName()
getElementByClass()
querySelector()
replaceNode()
replaceElement()
replaceChild()
replaceWith()
JavaScript interpreter processes programs written in Java.
JavaScript interpreter processes commands in a script written in JavaScript.
Java and JavaScript are almost similar
JavaScript cannot be embedded in HTML.
oncontextmenu
onmousedown
onrightclick
onselect
It is triggered when an element is clicked
It is triggered when an element gains focus
It is triggered when an element is hovered
It is triggered when the window is resized
onkeyup
element.getChildren()
element.childNodes
element.getElementsByTagName()
element.getChildNodes()
element.addEvent()
element.addEventListener()
element.attachEvent()
element.onEvent()
onkeyrelease
DOMContentLoaded
onstart
oninit
classList.add()
classList.remove()
classList.toggle()
classList.replace()
To style HTML Pages
To perform server-side scripting operation
To execute query related to DB on server