Forum

Number Of Page View:100,000+/Months
LOGIN |New User

Reply

How we used JavaScript with HTML DOM?
 In HTML4, We use them to dynamically change the inner content and attributes of HTML elements.
 I have you example which shows you how to change the content of HTML element.
document.getElementById(id).innerHTML=new HTML

 We can change the attribute of an HTML element like that,
document.getElementById(id).attribute=new value

Posted By: Name:Rajesh Kr URL: How we used JavaScript with HTML DOM?