Total Questions:-13 Goto Page:
1 2 3
R4R --->Java-->DHTML -->DHTML Interview Objective Questions And Answers
DHTML Interview Questions And Answers
Page 1
Question :What is the features of DHTML?
Give Your Answer
Answer: Some most important features of DHTML are given below:
1.Using DHTML we can change the tags and their properties.
2.It is use for Real-time positioning.
3.It is used to generate dynamic fonts (Netscape Communicator).
4.Used for Data binding (Internet Explorer).
User Name:Vivek Date:23.01.09
Question :How FontSize and Font Size is differ in DHTML?
Give Your Answer
Answer: font size is an attribute that we used in font tag.Where as font-size is an style property.
<font size="5"> use in font tag.
p{font-size:"5"} use in CSS.
User Name:Vivek Date:23.01.09
Question :What is the difference b/w DHTML and HTML?
Give Your Answer
Answer: Some main difference b/w DHTML(Dynamic HTML) and HTML(Hyper Text Markup Language)are given below.
1.Using DHTML we can use JavaScript and style sheets in our HTML page.
2.Using DHTML we can insert small animations and dynamic menus into our HTML page.
3.If use want that your web page display your DHTML effects(object or word can highlighted, larger,a different color etc) than you have to save your web page with .dhtml extension except .html or .htm .
User Name:Vivek Date:23.01.09
Question :How to Handle Events with DHTML?
Give Your Answer
Answer: Event is use to trigger actions in the browser. When client click on the element, associated action will started.Like: an JavaScript will started when client click on element.
Using Event Handler we can do like that,When an event occur it will execute code associated with that element.
Example:
In this example header will changes when client clicks.
<h1 onclick="this.innerHTML='abc!'">Click on this text</h1>
We can add a script in the head section and then we call the function from the event handler.
Example:
<html>
<head>
<script type="text/javascript">
function changetext(id)
{
id.innerHTML="abc!";
}
</script>
</head>
<body>
<h1 onclick="changetext(this)">Click on this text</h1>
</body>
</html>
User Name:Vivek Date:23.01.09
Question :How to change HTML Attribute using HTML DOM?
Give Your Answer
Answer: I have given you 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
User Name:Vivek Date:22.01.09
Go:
1 2 3
DHTML Objective Questions And Answers
DHTML Objective Questions And Answers
DHTML Subjective Questions And Answers
DHTML Subjective Questions And Answers
R4R,DHTML Objective, DHTML Subjective, DHTML Interview Questions And Answers,DHTML,DHTML Interview,DHTML Questions ,DHTML Answers
R4R --->Java-->DHTML -->DHTML Interview Objective Questions And Answers
Contact Us
|