Ok, heres what im trying to do... I want the script to check the window size and if it isnt eaxctly 750x550 i want it to send the user back to the front page (/index.html). So basicly i just wanna say... "if the width doesnt equal 750 or the height doesnt equal 550; send the user to index.html." I know this code below isnt right but its all i could gather
<HTML>
<HEAD>
<body bgcolor="black">
<script language="JavaScript"><!--
function checkSize(w,h) {
w = window.innerWidth;
h = window.innerHeight;
if ((w != '750') || (h != '550')){
parent.location.href= 'index.html';
}
//--></script>
</HEAD>
<BODY onLoad="checkSize()">
</BODY>
</HTML>
<HTML>
<HEAD>
<body bgcolor="black">
<script language="JavaScript"><!--
function checkSize(w,h) {
w = window.innerWidth;
h = window.innerHeight;
if ((w != '750') || (h != '550')){
parent.location.href= 'index.html';
}
//--></script>
</HEAD>
<BODY onLoad="checkSize()">
</BODY>
</HTML>