For example, resizing the main window changes the clientWidth property. Expressions that reference clientWidth might not be recalculated, because the change might not be recognized. Implicit dependencies refer to properties that can be altered by changes in other properties. For example, the height of a div implicitly depends on the innerHTML of the div . However, if an expression references the height , a change in the innerHTML , which might alter the height , does not cause a recalculation of the expression on a subsequent call to recalc .
Related properties can access or manipulate data or behaviors through one or more other properties.
For example, pixelLeft and posLeft can set or retrieve the left position of the element. However, if an expression that references pixelLeft and posLeft is altered, the expression might not be recalculated on subsequent calls to recalc . The following example uses the recalc method in HTML and script to help create a timer. If the calls to recalc are commented out, the timer does not work correctly. This function is called when the page loads.