Hi everyone, I'm trying to get something like like "please wait" displayed in place of my result while the js is functioning to show that the javascript is working.
I'm guessing it needs to go to the body before automatically going back to the script block for the final function. I've been trying for a few days to get this to work but figure it out. Can anyone help me?
Here's the code to show what I mean.
I'm guessing it needs to go to the body before automatically going back to the script block for the final function. I've been trying for a few days to get this to work but figure it out. Can anyone help me?
Here's the code to show what I mean.
Code:
<html><head>
<meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type">
<script type="text/javascript">
function JavaProcessAlert()
{
var Update = document.getElementById('DisplayedText')
Update.innerHTML = "Please wait" ;
}
function JavaProcess()
{
var xx = 0;
while ( xx < 1000000000 ) { xx++; }
Update.innerHTML = xx;
}
</script>
</head>
<body>
<p id="DisplayedText" >Get Result</p>
<p><input value= "Start" onclick="JavaProcessAlert();" type="button"></p></form>
</body></html>