Menu
What do I add to this to display the time the alert was fired off in the alert text?
[code]
<html>
<script type=”text/javascript”>
function ShowTimeoutWarning ()
// Get today’s current date.
{
window.alert(“You will be automatically logged out unless you do something!”);
}
function RedirectEm ()
{
window.location =”http://cpe.ky.gov”;
}
</script>
<body onload=”setTimeout(‘ShowTimeoutWarning();’, 2000); setInterval(‘RedirectEm();’, 10000);”>
</body>
</html>