Javascript resize works in IE not FF

E

eoin.haluch

Hi,

I'm using javascript to set div sizes dependant on the size of the
window, it works in IE6 < but not IE 7 of FF. Any ideas?

<script language="JavaScript" type="text/javascript">
function getPageHeight() {
var myFooter =(document.body.scrollHeight > document.body.clientHeight)
? document.body.scrollHeight : document.body.clientHeight;
document.getElementById("sidebar").style.height = myFooter-175;
}
getPageHeight();
</script>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,189
Members
46,734
Latest member
manin

Latest Threads

Top