Get webview frame and level (webview.frame)
Declaration
frame = webview.frame([ id ])
Parameters
- id
Integer. Optional. Current webview id (1 ~ 1000). Default 1.
Returns
- frame
Table. The frame and level information of the current webview.
Notes
Get the frame and level information of a webview.
Example
local frame = webview.frame(1)
sys.alert(
"Origin:".."("..frame.x..","..frame.y..")\n"..
"Size:".."(".."W:"..frame.width..", ".."H:"..frame.height..")\n"..
"Level:".."("..frame.level..")"
)
Note: uses non-chapter API sys.alert