Describe how DHTML work with JavaScript.

Describe how DHTML work with JavaScript.

As DHTML is not a language and it just use the property of HTML, JavaScript and CSS to make dynamic content. So here I will represents the working of DHTML with JavaScript with a simple example that just greets user with its name:
<! DOCTYPE html PUBLIC "-//abc//DTD XHTML 1.1//EN" "http://www.abc.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.abc.org/1999/xhtml">
<head>
<title>DHTML example</title>
<script type="text/JavaScript">
     function greet_user()
     {
          var name=document.getElementById(“userName”).value;
     if(name==””)
          {
                    alert(“Welcome”+name);
          }
          else
          {
                    alert(“Please provide User Name”)
          }
     }
</script>
</head>
     <body>
          <table border=”1” cellspacing=”3”>
          <tr>
                    <td colspan=”2”><h6> Please Enter Your Name </h6></td>
          </tr>
          <tr>
                    <td><h4>User Name </h4></td>
                    <td><input type=”text” id=”userName” ></td>
          </tr>
          <tr>
                    <td colspan=”2”><input type=”button” value=”Submit” onclick=”greet_user()”/>
          </table>
     </body>
</html>
Distinguish between Static vs. Dynamic HTML
Distinguish between Static vs. Dynamic HTML - The easiest difference is static HTML once rendered cannot be changed on the other hand dynamic HTML can be changed.........
Working of DHTML
Working of DHTML - DHTML as it is combination of HTML as well as JavaScript and it uses the HTML to render the text on the browser.......
What are technologies we use in DHTML?
What are technologies we use in DHTML? - Speaking in true sense there is nothing dynamic in DHTML but enclosing technologies such as CSS, JavaScript, DOM and the static markup language it becomes dynamic........
Post your comment