Sg2.9
get document width and heigth
Recent RSS
get document width and heigth
From:  Doeke Wartena
Date:  17. April 2010, 12:50

I need the document width and height and store them as 2 seperate values.
Is this possible, i have been searching in the reference but that didn't really help.

Re: get document width and heigth
Date:  18. April 2010, 06:55

Sure, try this:

var docSizeX = document.size.width;
var docSizeY = document.size.height;

Good luck!

Re: get document width and heigth
From:  Doeke Wartena
Date:  19. April 2010, 10:17

thx it works

Scripts
08.08.14, 15:24
15.05.14, 14:23
02.03.14, 19:16
18.11.13, 14:48
22.03.13, 03:05
22.02.13, 15:45
Posts
10.01.17, 16:37
19.02.16, 06:03
19.02.16, 06:00
17.01.16, 11:00
12.01.16, 13:10
25.11.15, 08:19
Script of the Moment
Stroke 3D 16.06.09