[Javascript] Monitor an offsetHeight value

Stephan Wehner stephanwehner at gmail.com
Thu Jan 11 11:18:52 CST 2007


On 1/11/07, Guillaume <javascript at webdesignofficina.com> wrote:
> Hi all,
>
> I'm trying to build a function that would monitor an offsetHeight value,
> to test if this value is changing from it's initial value to something
> smaller or bigger when a user plays with the page: either resize the
> browser window or the text size.

If those are the only cases, you can set up listeners for those two kinds
of events and have the action test for changes to the offsetHeight value.

Or am I missing something?


> I have already come across scripts that would monitor if the font size
> has changed.

And the window resize detection comes directly from the browser.

Stephan


-- 
Stephan Wehner
> http://stephan.sugarmotor.org
> http://stephansmap.org
> http://www.trafficlife.com
> http://www.buckmaster.ca



More information about the Javascript mailing list