s@rdalya

 

WindowObject

Page history last edited by vozcelik 3 yrs ago


 

WindowObject

(extends Object)


Object Summary

This object is used to get various properties of the browser window; such as its width and height and scroll offsets.


Constructor

This object is statically accessed. It does not have a constructor.


Methods

 

WindowObject.getInnerDimension()

 

returns

A Dimension that includes the inner width and height of the browser window.

 

comments

Gets a Dimension that includes the inner width and height of the browser window.


WindowObject.getScrollOffset()

 

returns

A Dimension that includes the scroll offset of the browser window.

 

comments

Gets a Dimension that includes the scroll offset of the browser window.


WindowObject.scrollTo(varX,varY)

 

parameters

varX - The object reference to scroll to, or X coordinate.

varY - (optional) Y coordinate.

 

comments

If two parameters are given, then simply window.scrollTo(varX,varY) is called.

 

If the method has one parameter then it is assumed to be an object to be scrolled to.


See Also

 

None given.


Usage Examples

 

 

Comments (0)

You don't have permission to comment on this page.