Click here to Skip to main content
16,016,489 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
var wh = $(document.documentElement.clientHeight).height();
var tH = $('.a_Top').height();
var bH = $('.a_BottomBar_b').height();
$('.a_ContentOuter').css('min-height',(wh)+'px');
$('.a_ContentInner').css('min-height',(wh-(tH+bH+29))+'px');


I am writing this code in a function but when i open this page in Firefox, it will be a error and when we comment on this whole code it will be fine, so please give me the suggestion and help to find out the right way to use this code ....
Posted
Comments
Pradip R 30-Dec-14 1:28am    
As per your code document.documentElement.clientHeight will give you the document height automatically, you don't need to get the object of it and find the height of it. Try this var wh = document.documentElement.clientHeight;
What is that error?

1 solution

HI hope this link will solve your query, please click below:

http://www.javascripter.net/faq/browserw.htm[^]

Thanks
 
Share this answer
 

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