Hello All,
I have a simple question
How do i get a variable from one function into another function. I am new to javascript.
Here is my code
function timestart(that)
{
var x = new Date();
that.value = x;
}
function timeend(that)
{
var y = new Date()
that.value = y;
}
function duration()
{
var z = x - y;
alert("duration=" + z)
}
Any insight is greatly appreciated. Thanks