DHTML

DHTML Interview Questions


Totel:13 Click: 1 2 3
DHTML Interview Questions And Answers

Page 1

 Some most important features of DHTML are given below:

Using DHTML we can change the tags and their properties.
It is use for Real-time positioning.
It is used to generate dynamic fonts (Netscape Communicator).
Used for Data binding (Internet Explorer).

 Some most important features of DHTML are given below:

Using DHTML we can change the tags and their properties.
It is use for Real-time positioning.
It is used to generate dynamic fonts (Netscape Communicator).
Used for Data binding (Internet Explorer).

 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.



 Some main difference between 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 .

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>

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



Goto Page:

1 2 3
DHTML Objective Questions And Answers

DHTML Objective Questions And Answers

DHTML Interview Questions And Answers

DHTML Subjective Questions And Answers


R4R,DHTML Objective fresher and experienced, DHTML Subjective fresher and experienced ,DHTML Interview Questions And Answers,DHTML fresher and experienced,DHTML Interview fresher and experienced ,DHTML Questions fresher and experienced,DHTML Answers fresher and experienced