Method signature
Example usage
Callback function
It invokes the method API_callback, passing it as a parameter data object that contains the field (all values in pixels):
Parameter | Description |
---|---|
clientWidth | The width of the page (not to be confused with a screen resolution, if the value is larger than the screen resolution, a scroll bar appears) |
clientHeight | The height of the page (not to be confused with a screen resolution, if the value is larger than the screen resolution, a scroll bar appears) |
scrollLeft | The horizontal scroll position |
scrollTop | The vertical scroll position |
offsetLeft | The distance between the left edge of the page and the left edge iframe application |
offsetTop | The distance between the upper edge and the upper edge of the page application iframe |
innerHeight | The height of the user’s browser window (window.innerHeigth) |
innerWidth | The width of the user’s browser window (window.innerWidth) |
Callback example
method: “getPageInfo”
result: “ok”
data:”{‘clientWidth’:1000,’clientHeight’:934,’scrollLeft’:0,’scrollTop’:0,’offsetLeft’:0,’offsetTop’:76,’innerHeight’:949,’innerWidth’:863}”