Skip to content Skip to sidebar Skip to footer

How To Find Page Width In Opera 12 (for Desktop Windows)?

I want to access full page width & height in Opera. Note I am not asking about Viewport's height or width, I want page's/document's width & height. I am using Opera 12.12 I

Solution 1:

I'm getting the correct values from body.offsetWidth/Height, body.scrollWidth/Height and body.clientWidth/Height (using the same build as you). Only window.innerWidth/Height is supposed to return browser window viewport.

Maybe you've got some odd CSS that sets the dimensions of the body to the viewport and puts the scrollbar on an element somewhere inside. In your case, I'm getting the expected values of 2000 x 2000 px from the scrollWidth/Height of the <html>, see demo.

Solution 2:

Try these on for size:

window.outerHeight;
window.outerWidth;

Solution 3:

Thanks to Bergi I got the answer of my question. I have been doing some investigation about Page & Viewport sizes in different browsers and this is what I have found: Google Doc Spreadsheet

Post a Comment for "How To Find Page Width In Opera 12 (for Desktop Windows)?"