Link to home
Start Free TrialLog in
Avatar of Cali_Salas
Cali_Salas

asked on

A client side javascript that redirects to Logout.aspx

Hi,
Could anyone help me with some piece of javascript code? I need to create a client side javascript that will redirect to Logout.aspx  20 minutes after the current page was rendered.
And where do I have to call that javascript? On <body load=> ?
Thanks!
ASKER CERTIFIED SOLUTION
Avatar of COBOLdinosaur
COBOLdinosaur
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Cali_Salas
Cali_Salas

ASKER

Thanks, but what about if there's a previous javascript function onload ? In my case, I already call another javascript function:

<SCRIPT language="javascript">
function SaveScroll()
{
    document.all.item('txtScroll').value = theBody.scrollTop
}
function SetScroll()
{
    theBody.scrollTop = document.all.item('txtScroll').value
}

</SCRIPT>
<body id="theBody" onscroll="Javascript:SaveScroll()" onload="Javascript:SetScroll()">

Is there any other place where I could put "setTimeout('LogoutFunction()',20000)" ?
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Glad I could help.  Thanks for the A. :^)

Cd&