We have a simple frame based website.
http://www.onlinetechhelp.com/ When you enter you need to check a box saying you agree to the disclaimer. This sets the cookie so you don't have to do this the next time. You will jump straight to the home page
http://www.onlinetechhelp.com/support/home.htm The problem is that initially it goes to
http://www.onlinetechhelp.com/home.htm which is wrong. If you close and re-enter it finds the correct path. I don't speak Java and but I want to find the right line to redirect it to the right path the first time. The script below is from the file called disclaimer.htm near to the bottom there is a "redirect" statement but that has no effect. I feel like I am overlooking something simple. Help!
Gordon
</textarea></td>
</tr>
<tr>
<td height="1" colspan="3" valign="top"> </td>
</tr>
<tr>
<td width="26" height="21" valign="top" class="bodycopy"> <input name="checkbox" type="checkbox" onChange="MM_validateForm(
'textarea'
,'','R');r
eturn document.MM_returnValue" value="yes"></td>
<td colspan="2" align="left" valign="top" class="bodycopy">I
have read and agree to the terms above </td>
</tr>
<tr>
<td width="26" height="21" valign="top" class="bodycopy"> <input name="publicCheckBox" type="checkbox" onChange="MM_validateForm(
'textarea'
,'','R');r
eturn document.MM_returnValue" value="yes"></td>
<td colspan="2" align="left" valign="top" class="bodycopy">I
am using public computer</td>
</tr>
<tr>
<td height="21" colspan="2" valign="top" class="bodycopy"> </t
d>
<td width="304" height="21" valign="top" class="bodycopy"><a href="tech_help.htm" target="_self">I
do not agree to terms</a></td>
</tr>
</table></td>
</tr>
</table>
<table width="336" height="26" border="0" align="left" cellpadding="0" cellspacing="0">
<tr>
<td width="144"><input name="Submit" type="button" value="Submit" onClick="JavaScript:valida
teCheck()"
>
</td>
<td align="right"> </td>
</tr>
</table></td>
</tr>
</table>
<input type=hidden name="redirect" value="
http://www.onlinetechhelp.com/support/home.htm">
<input type=hidden name="required" value="checkbox">
</form>
<script>
<!--
if(getcookie("ritwik"))
{
parent.window.location.hre
f="support
/home.htm"
;
}
//-->
</script>
<!-- <form action="home.htm" method="post" name="form1" onSubmit="MM_validateForm(
'textarea'
,'','R');r
eturn document.MM_returnValue">
-->
</body>
</html>