Hi kdf <[EMAIL PROTECTED]>,

>> I was thinking that it must be possible to examine the rows and cols
>> properties in a frame/frameset.
>
>That seems to only readback a value if you have specifically set it.
>
Found a simple solution:
        var maxwidth = document.body.clientWidth;

I have tested this in IE6, and it works in a window or a frame.  The width is 
returned in pixels.  This is the width of the frame, not the writeable area in 
the document (so it would include space used by scrollbars), so if you use it, 
probably best to deduct a bit from it to make artwork fit nicely.

>I can't seem to even FIND a div by id.
>
I use:
<DIV id="divid"></DIV>
        var elem = document.getElementById("divid");

Phil
_______________________________________________
beta mailing list
beta@lists.slimdevices.com
http://lists.slimdevices.com/lists/listinfo/beta

Reply via email to