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> Link to comment https://forums.phpfreaks.com/topic/276572-footer-with-javascript/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.