Given this code:
-----------------------------------------------------
<html>
<head>
<title></title>
<script type="text/javascript" src = "/js/prototype.js"></script>
<script type="text/javascript">
function init() {
alert(document.viewport.getHeight());
}
Event.observe(window, 'load', init);
</script>
</head>
<body>
</body>
</html>
--------------------------------------------------------
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?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---