// JavaScript Document
$(window).load(function (){
$("#submit").click(function () {
var myVar=setInterval(function(){myTimer()},1000);
});
var c = 0.01;
var clock = "15:48:00";
function myTimer()
{
var d=new Date();
var t=d.toLocaleTimeString();
document.getElementById("time").innerHTML=t;
if(document.getElementById("time").innerHTML >= clock)
{
callPow();
clock = false;
}
}
function callPow(){
If(document.getElementById("txt2").value == "");
{
var val = c;
}
else
{
var val = document.getElementById("txt2").value;
}
var power= document.getElementById("txt2").value;
alert(Math.pow(val,power));
}
});
Ok. What I am trying to do is once a day the clock turns to "15:48:00" when it reaches this time call callPow();
Then reset then day two at 15:48:00 call callPow, day three same time call callPow, and so on.
I