What is DHTML
Before using DHTML on your web pages you must be aware of some points that make DHTML a little bit difficult to manage on different browsers to work properly.
- Detect browser type.
- Detect Layer element for Netscape Navigator.
- Detect Div element for other browsers.
- Detect browser versions for using cross browser capabilities of HTML elements.
It will display a text message on the page. But it will display inline text message on page load. You can also try on demand message display by creating a simple function and call to on button click event.
A simple code example:
Now you have learnt the power of DHTML to change the output without refreshing the page even after the document has loaded.