views:

29

answers:

1

Hi

How to find Masterpage offsetheight and offsetwidth using javascript ?

Regards, kumar

+1  A: 

Isn't the MasterPage height and width just the document's height and width? And by offsetWidth and offsetHeight, do you mean you want the width and height? Offset is usually for left and top.

Use jQuery's width and height methods:

var width = $(document).width();
var height = $(document).height();
GenericTypeTea
thanx for the reply
kumar
i have a masterpage in that i am loading aspx page. in aspx page i have a table
kumar
so i need to dynamically assign a values to that at runtime
kumar