InterviewSolution
Saved Bookmarks
| 1. |
How To Refer An Element In Dhtml? |
|
Answer» The SIMPLEST way to reference an element is by ID attribute.The element is replaced as an object and its various XHTML attributes BECOME properties that can be manipulated by SCRIPTING. Ex: <p id=”ptext”> In script:<script type=”text/javascript” for=”ptext”> The simplest way to reference an element is by id attribute.The element is replaced as an object and its various XHTML attributes become properties that can be manipulated by scripting. Ex: <p id=”ptext”> In script:<script type=”text/javascript” for=”ptext”> |
|