The getWindowDimensions() method gets the inner dimensions of the current window.
dims = Splunk.util.getWindowDimensions()
|
Object |
JSON-formatted height and width. Example: { 'height': 600, 'width': 800 } |
var dimensions = Splunk.util.getWindowDimensions();