N
Nelson
Here is the discussion that is already discussed that I am looking for.
After visiting the link below I am getting the following code.
My question is in which client side script event I can set the value of x =
10. Setting x = 10 in the onmousemove may be a performance issue.
Thank you very much for your advice.
After certain seconds. Triggers the alert message
<HTML><HEAD><TITLE></TITLE>
<SCRIPT LANGUAGE="Javascript"><!--
var x = 10
var y = 1
function startClock(){
x = x-y
document.frm.clock.value = x
setTimeout("startClock()", 1000)
//if(x==0){
//alert("BOOM");
//x=10;
//Redirect the user to login page since the session times out
}
}
//--></SCRIPT>
</HEAD>
<BODY BGCOLOR="#FFFFFF" onLoad="startClock()">
This page will explode in
<FORM NAME="frm">
<INPUT TYPE="TEXT" NAME="clock" SIZE=4 >
</FORM>
seconds...
</BODY></HTML>
After visiting the link below I am getting the following code.
My question is in which client side script event I can set the value of x =
10. Setting x = 10 in the onmousemove may be a performance issue.
Thank you very much for your advice.
After certain seconds. Triggers the alert message
<HTML><HEAD><TITLE></TITLE>
<SCRIPT LANGUAGE="Javascript"><!--
var x = 10
var y = 1
function startClock(){
x = x-y
document.frm.clock.value = x
setTimeout("startClock()", 1000)
//if(x==0){
//alert("BOOM");
//x=10;
//Redirect the user to login page since the session times out
}
}
//--></SCRIPT>
</HEAD>
<BODY BGCOLOR="#FFFFFF" onLoad="startClock()">
This page will explode in
<FORM NAME="frm">
<INPUT TYPE="TEXT" NAME="clock" SIZE=4 >
</FORM>
seconds...
</BODY></HTML>