views:

29

answers:

1

Hi,

i am having a .aspx and masterpage page. in masterpage i am loading aspx page . in aspx page design i am using generating table structure using code-behind server in javascript how to find the height and width .

Regards, kumar

+1  A: 

If you're looking for the table height and width, then this should do it

var tbl = document.getElementById('tblDemo'); alert(tbl.offsetWidth + '\n' + tbl.offsetHeight);

Jay Allard