innerWidth

T

Tim Streater

I have a frame, part of a frameset, whose width I would like to set and
by doing so alter the overall window width too. The user may also do
this by hand.

I have the impression that, as long as I do *not* adjust the frame's
innerWidth, then reading the frame's innerWidth later gives me a value
that reflects the frame's actual width. So if the user manually makes
the frame narrower, I would get a smaller innerWidth value.

However, if I use JavaScript to set the innerWidth to some value (X,
say), thereby making the frame narrower, then X is always what I'll get
back when reading innerWidth, even if the user manually resizes the
frame, making it wider or narrower.

Is this expected behaviour for innerWidth? Would I be better off using
resizeTo() instead?

Thanks,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,020
Latest member
GenesisGai

Latest Threads

Top