Jump to content

Footer with Javascript


Hazukiy

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.