lilman Posted December 30, 2006 Share Posted December 30, 2006 With this code: document.getElementById(divName).innerHTML = text;document is the object, getElementById(divName) would that be the method and the innerHTML be the property? if someone could clarify this for me that would be great! Link to comment https://forums.phpfreaks.com/topic/32292-object-method-and-properties/ Share on other sites More sharing options...
fenway Posted December 30, 2006 Share Posted December 30, 2006 getElementById is a method of the document object; innerHTML is one of its attributes/properties. Link to comment https://forums.phpfreaks.com/topic/32292-object-method-and-properties/#findComment-150019 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.