document.getElementById(\"test\").value
document.getElementById(\"test\").innerHTML
Does the first mean the address and the second mean the value
some HTML
elements have an attribute "value"
, such as some others don't have it.
if you want to modify them, you may use the DOM attribute (used with Javascript
) innerHTML
(if they have any). this attribute represents the content of an element, so it may be used for elements accepting to nest other element such as ,