Click here to Skip to main content
15,896,606 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi How to get inner height of browser and change to table height based on browser using java script,i am using master page so if i open each page i want get the browser height and change to table height so only i get full page.i mean if browser is minimize i capture that height and apply to table so not get scroll bar and fit in to full page.

Regards
Aravind
Posted

1 solution

window.onresize

you can do the process. to get the window height
w= window.innerWidth || document.documentElement.clientWidth;
h= window.innerHeight || document.documentElement.clientHeight;

but in general your table will be resized with your window resize.

put your height in % then it will be set in general.
if you put it on pixel then you will need height, width.....
 
Share this answer
 
Comments
Aravindba 18-Jun-13 1:06am    
thany for ur reply.i use % but if i have controls then only it increase the height ,in default or page load it not fill the full page.i am using master page,in child page based on controls available in page it increase the page height,i use background color master page and child page for differentiate.
and above code is work for ie8 also ?
Mohibur Rashid 18-Jun-13 3:26am    
do you mean, asp.net? no idea

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900