How would I go about make function for object JavaScript? : <p>How would I making my own function like <code>.innerHTML</code> for <code>document.getElementById("idName");</code>? For example it would look something like <code>document.getElementById("idName").myFunction;</code>.</p>
