The behaviour of the document elements in XML can be defined by
All of the above
XML itself only describes structure and data; behaviour is added by a script (such as JavaScript) working through the Document Object Model (DOM), which represents the XML document as a tree of objects.
The document object is the root of that tree: through it a script can find, create and remove elements (getElementsByTagName, createElement …), so it defines how the document responds as a whole.
Each element object represents one element: its attributes, text and children can be read and changed through its properties and methods, which defines how that element behaves.
Registering event handlers on elements (e.g. for click or load events) attaches code that runs when the event occurs, which is the most direct way of giving elements interactive behaviour. All three mechanisms are used, so every one of them applies.
Hence, the answer is All of the above.
__________ tag is an extension to HTML that can enclose any number of Javascript statements.
Javascript and Java has similar name because __________ is/are true.
(a) Javascripts syntax is loosely based on Java’s syntax
(b) Javascript is stripped down version of Java
(c) Java and Javascript are originated from Island of Java
Codes :
The syntax of capturing events method for document object is
__________ tag is an extension to HTML that can enclose any number of Javascript statements.
Javascript and Java has similar name because __________ is/are true.
(a) Javascripts syntax is loosely based on Java’s syntax
(b) Javascript is stripped down version of Java
(c) Java and Javascript are originated from Island of Java
Codes :
The syntax of capturing events method for document object is
Which of the following statements is/are true?
P: In a scripting language like JavaScript, types are typically associated with values, not variables.
Q: It is not possible to show images on a web page without the image tag of HTML