does getDimensions actually work?

blechler
Thu, 08 May 2008 20:45:45 -0000

Given this code:
-----------------------------------------------------



<script type="text/javascript" src =
"/js/prototype.js">

function init() {
  alert(document.viewport.getHeight());
}

Event.observe(window, ''load'', init);






--------------------------------------------------------
In FF the alert says 8, and in IE 6 & 7 I get 0.  Isn''t this
supposed
to return the height of the viewable area?