Location: PHPKode > projects > phpautotest > top.php
<HTML>
<STYLE type=text/css>
BODY {font-family: Tahoma, Arial, Geneva, Helvetica, sans-serif; font-size: 13px; font-weight: bold; color: #000000; border-bottom:1px solid #999999;
}
</STYLE>

<BODY topmargin = '0' leftmargin = '0' onLoad = 'set_checkbox()'>

<SCRIPT LANGUAGE="JavaScript">
// This page is continually refreshed and therefore status of check-box does not match the value stored in record.php
function set_checkbox()
{
	top.frames[0].document.forms[0].interact.checked = top.interact;
}

function toggle_interaction()
{
	if(top.interact == false)
	{
		top.interact = true;	
	}	
	else
	{
		top.interact = false;
	}
}
</script>

<form>
<script language = 'javascript'>
// If target page is not start.php (i.e recording has started)
if(top.record == 1)
{	
	top.frames[0].document.write("Recording has started. Click <a href = 'index.php' target = '_parent'>here</a> to stop.");
}
else
{
	top.frames[0].document.write("Recording has not yet started. Click <a href = 'index.php' target = '_parent'>here</a> to go to phpautotest's home page.");
}
</SCRIPT>
&nbsp;&nbsp;|&nbsp;&nbsp;<font color = '#FF0000'<i>Interactive recording? </i><input type = 'checkbox' name = 'interact' onClick = 'toggle_interaction()' checked>
</form>
</BODY>
</HTML>
Return current item: phpautotest