The size of a web page displayed in a web browser component can be retreived with the small code provided here.
The size of the web page is not the same than the web browser component. A part of the page can be hidden, or the page can be smaller than the web browser object.
This script will help you if you need to create a custom scroll bar, or if you need to manipulate a bitmap copy of the web page with browser.ID.copyTo.ID.
How does it works
To retreive the size of the web page from MioScript, a loop is called 10 times per second to execute a JavaScript code on the web page.
This JavaScript code read the current size of the document (properties scrollWidth and scrollHeight of the body object).
Finaly, the JavaScript code call the MioScript function get_width_height with the size of the document as parameters.