Code: Select all
Procedure DesktopWidth()
;
; Returns the width of the browser area
;
!var width;
!require(["dojo/window"], function(win){
! width = win.getBox().w;
!});
!return width;
EndProcedure
Procedure DesktopHeight()
;
; Returns the height of the browser area
;
!var height;
!require(["dojo/window"], function(win){
! height = win.getBox().h;
!});
!return height;
EndProcedure
Аnd this is also true for HTML?