[first]
I'm doing the following: $(document).width();
Where document, is inside an iframe.
In Firefox, Safari, Opera it returns the correct width (the same value as window.innerWidth;
In IE it returns me the total clientWidth of the main window. Not the width of the iframe (the iframe has a left of 130px for example).
[second]
I'm doing the following: $(document).height();
In Firefox, Safari it gives me the correct height of the iframe.
In Opera it returns a small number, where window.innerHeight returns the correct value.
In IE document.body.clientHeight returns the wrong number, but $(document).height() returns the whole window height, not the iframe height.