Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Javascript] innerwidth


  • From: javascript@xxxxxxxxxx (J. Lester Novros II)
  • Subject: [Javascript] innerwidth
  • Date: Fri, 24 May 2002 13:41:30 +0200

Dear Andrew,

On 05/24/2002 04:57 AM, Andrew Dunn wrote:
> I have tried this code but it says "innerHeight is undefined", I forgot to
> mention that this window is a frame would this make any difference?

Hm... That's weird. One always has a browser window so there should always be an 
'innerHeight' defined somewhere. However, try using a reference to 
'self.innerHeight' or even 'top.framename.innerHeight' and see if that works.

As a last resort you could consider using a 'for x in obj alert (obj.x);' 
construct to iterate over all the frame's properties to see where the browser 
thinks 'innerHeight' sits in the object hierarchy.

l8R lES
-- 
Since 1998, a federal judge ordered a breakup, an appeals court threw out that
order, and a new judge took responsibility; yet even with 2 courts finding that
m$ violated the Antitrust Act, no remedy has been put into effect.    cNet News
http://open.denhaag.nu                                   http://www.denhaag.org