insertBefore()
insertAfter()
appendChild()
prependChild()
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
getElement(id)
getElementById(id)
getElementById()
elementById(id)
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
CSS
Python
HTML
JavaScript
onclick
onmouseover
onmousehover
onmouseclick
innerHTML
innerText
textContent
All of the above
classList.add()
classList.remove()
classList.toggle()
classList.replace()
Display()
Prompt()
Alert()
Confirm()
To Perform Server Side Scripting Opertion
To Execute Query Related to DB on Server
To add interactivity to HTML Pages
To Style HTML Pages
oninput
onchange
onedit
onupdate
var defines a variable while let defines a constant.
There is no such major difference between them.
The value of a variable declared with var can be changed while the value of a variable declared with let cannot be changed.
var defined function scoped variable while let define block scoped variable.
The with value let cannot of a variable declared with var can be changed while the value of a variable declared be changed
var defines a variable while let defines a constant
var declare function scoped variable while let declare block scoped variable
All of the options
onerror
onexception
onwarning
onfail
ng-model
ng-repeat
ng-bind
ng-app
Microsoft
Sun Microsystems
Netscape
Oracle
variable carName;
var carName;
vari carName;
dim carName;
onsize
onresize
onzoom
onexpand
What type of value gets printed if we add the following two variables ?
var a = "10";var b =50;
Long
Text
Integer
Number
onprogress
onload
oncomplete
5myvalue
myvalue5
Myvalue
None of These
Client Side
Server Side
Both A and B
To style HTML Pages
To perform server-side scripting operation
To execute query related to DB on server
integers
double precision floating point
double
floating point
element.addEventListener("click", function);
element.addEventHandler("click", function);
element.attach("click", function);
element.on("click", function);
=
==
===
!=
{{ }}
[[ ]]
(( ))
<< >>
ng-start
ng-controller
ng-init
Volatile variable
Mutable variable
Immutable variable
Dynamic variable
document.getElementByTagName()
document.getElementsByTagName()
document.querySelectorAll()
document.tagName()
onhover
/* .......*/
//......
#......
$.........$
2value
first-name
var
_totalAmount
Multiple <script> tags can be used in the same HTML document
The <script> tag can only be placed in the <head> section
The <script> tag can only be used once in an HTML document
The <script> tag must always reference an external file
JavaScript must always be placed inside the <head> tag
JavaScript can be placed either in the <head> or <body> tag
JavaScript can only be placed in external files
JavaScript cannot be placed in the <head> tag
onmousescroller
onmousemove
Google
IBM
<script href="xxx.js">
<script src="xxx.js">
<script name="xxx.js">
<script id="xxx.js">
<script name="data.js">
<script href="data.js">
<script src="data.js">
<link href="data.js">
element.innerHTML
element.value
element.content
element.innerText
System.out.println("Hello Word")
println ("Hello Word")
document.write("Hello Word")
response.write("Hello Word")
onkeypress
onkeydown
onkeyup
onkeyrelease
if(a!=null)
if (!a)
if(a!null)
if(a!==null)
element.getValue()
x
*
element.getChildren()
element.childNodes
element.getElementsByTagName()
element.getChildNodes()
element.background = "red";
element.style.backgroundColor = "red";
element.style.background = "red";
element.css.backgroundColor = "red";
jscript.write("Sky is blue")
document.write("Sky is blue")
print("Sky is blue")
jscript.print("Sky is blue")
removeAttr()
deleteAttribute()
removeAttribute()
deleteAttr()