Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

javascript object reference

<p id="myId">This element has an ID</p>
<script>
	element = document.getElementById("myId");
	//The variable "element" now references to the paragraph element
</script>
 
PREVIOUS NEXT
Tagged: #javascript #object #reference
ADD COMMENT
Topic
Name
4+7 =