HTML DOM Interview Questions and Answers

HTML DOM Questions and Answers:

1 :: Explain How to change HTML Attribute using HTML DOM?

example to change HTML Attribute by using HTML DOM.
Example:
<html>
<body>
<img id="image" src="oldimage.gif">
<script type="text/javascript">
document.getElementById("image").src="newimage.jpg";
</script>
</body>
</html>
In the above example we load an image on HTML document by using id="image".Using DOM we get the element with id="image".JavaScript that we used in example to changes the src attribute from oldimage.gif to newimage.jpg
2/5 Rating (1 vote)
Is This Answer Correct?    2 Yes 0 No
Place Your Answer

2 :: Explain the syntax of UI object identifier used by DOM extension?

The DOM browser extension uses the following syntax for web UI objects:
Browser.BrowserChild(page_titile).html_class(object_tag)
1. page_title is the title of the web page, defined by the HTML TITLE tag.
2. object_tag is the label of the HTML element. How a HTML element is labeled depending on the type of HTML element.
3/5 Rating (1 vote)
Is This Answer Correct?    1 Yes 0 No
Place Your Answer

3 :: Explain DOM and how does it relate to XML?

The Document Object Model (DOM) is an interface
specification maintained by the W3C DOM Workgroup that
defines an application independent mechanism to access,
parse, or update XML data. In simple terms it is a
hierarchical model that allows developers to manipulate XML
documents easily Any developer that has worked extensively
with XML should be able to discuss the concept and use of
DOM objects freely. Additionally, it is not unreasonable to
expect advanced candidates to thoroughly understand its
internal workings and be able to explain how DOM differs
from an event-based interface like SAX.
4/5 Rating (1 vote)
Is This Answer Correct?    1 Yes 0 No
Place Your Answer

4 :: What is difference between DOM and SAX? What would we use if an option is given?

DOM parses an XML document and returns an instance of org.w3c.dom.Document. This document object's tree must then
be "walked" in order to process the different elements. DOM parses the ENTIRE Document into memory, and then makes it
available to you. The size of the Document you can parse is limited to the memory available.
4/5 Rating (1 vote)
Is This Answer Correct?    1 Yes 0 No
Place Your Answer

5 :: Explain multi-tagging?

Multi-tagging is a technique used by the DOM browser extension to identify a web page UI object. Whenever possible, DOM extension inserts more than one tag into the object identifier in following format:
Browser.BrowserChild(page_title).html_class(caption_tag|window_tag)
1. Caption_tag is the caption of the HTML element.
2. #index_tag is the index of this HTML element, counting from the beginning of this page of the same class of HTML elements.
3. window_tag is the window identifier.
0/5 Rating (0 vote)
Is This Answer Correct?    1 Yes 0 No
Place Your Answer

Rate This Category:
4/5 Rating (1 vote)
Place Your Question



Top: HTML DOM Interview Questions and Answers
HTML DOM Interview Questions and Answers

Top Frequently Asked HTML DOM Question
Frequently Asked HTML DOM Job Interview Question


Top Frequently opened Computer Programming Job Interview categories
Most popular Computer Programming Job Interview categories

Comments About HTML DOM Interview Questions and Answers

Share your valuable opinions, ideas and suggestions about HTML DOM Interview Questions and Answers
While placing your comment your email address is required but won't be published any where else; Personal information will be kept confidential; we do not sell or release our respective visitors private information.
  1. Webmaster 22nd of May 2012

    Webmaster Said

    Tell us what you feel about HTML DOM Interview Questions and Answers
    All comments will be published after review. No login or registration is required to post a comment on HTML DOM Interview Questions and Answers We offer and invite you to submit your valuable comment now; Please be respectful of others when commenting. Insulting others, self-promotional comments, website promotional comments, marketing stuff, SEO Techniques, SMS-style content and off-topic comments will not be approved at this information portal.
    So start sharing your thoughts regarding HTML DOM Interview Questions and Answers
    Thank you.

Leave a Comment

Leave a Comment
  1.  Enter This Verification Code  Regenerate Verification Code  



Your reply will be added to the comment above (Below any other replies to this comment) -

Top Comments About: HTML DOM Interview Questions and Answers
Comments on HTML DOM Interview Questions and Answers

 
Top of Link batk to HTML DOM Interview Questions and Answers
Link batk to HTML DOM Interview Questions and Answers