Hazukiy Posted April 5, 2013 Share Posted April 5, 2013 Hi, I'm trying to make it so when the height of the browser is more than '900' it changes the style type bottom to 0. Here's my code but it doesn't work? Thanks. <script type="text/javascript"> function changeHeightLimit() { if(window.innerHeight >= 900) { document.getElementById("footer").style.bottom="0"; } } </script> Quote Link to comment https://forums.phpfreaks.com/topic/276572-footer-with-javascript/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.