Hi everybody,
i have a trouble with the timeout, i want my page expires in 20 minutes, but before it log out, i want ask the user if he wants to save the form, if he click ok, it saves, if click cancel, it logs him out...
i´m using java script to set the timeout alert, but when the user click ok, it dont work, it do nothing.
<script language="JavaScript">
<!--
function getgoing()
{
var x = window.confirm("It will log you out in one minute, do you want to save?");
if(x)
{
HOW TO CLICK AN ASP BUTTON HERE????
}
else
{
///
}
}
if (top.frames.length==0)
{
setTimeout('getgoing()',300000);
}
//-->
</SCRIPT>