Gimme.Screen.getViewportSize()

Retrieves the browser viewport size (the available height and width within the browser window) as an object literal in the form { height: h, width: w }

Returns: An object literal in the form { height: h, width: w }
Params: None

Examples:
var vp = Gimme.Screen.getViewportSize();
alert('viewport height = ' + vp.height + ' and viewport width = ' + vp.width);

Last edited Jan 10, 2008 at 5:53 AM by sstchur, version 2

Comments

No comments yet.