Can someone make this HTML code for me?

Riiich

New member
If the screen height is smaller than 800px, then redirect the page to another one (small_index.html)
else just stay on this page

I asked this already, but my friend reminded me, what happens if javascript is turned off? Will it still work or is there a way to get around it? like another code

1 ex.
<script type="text/javascript">
function checkSize() {
var height = screen.availHeight;
if(height<800) {
window.location="./small_index.html";
}
}
</script>
<body onload="checkSize()">
</body>

2.
<SCRIPT language="JavaScript">
if (screen.height < 800)
{
window.location="small_index.html";
}
</SCRIPT>
 
Back
Top