Hi,

I have written a simple little random number generator program. However, with my limited knowledge I just can’t get the output result that I want.

This is the code:

<!DOCTYPE html>
<html>
<body>
<p id="demo">Click the button to Generate a Tracker Code.</p>
<button onclick="myFunction()">Generate Tracker Code</button>
<script>
function myFunction()
{
var x=document.getElementById("demo")
x.innerHTML=Math.floor((Math.random()*10000000000)+1);
}
</script>
<STYLE type="text/css">
BODY {text-align: center}
</STYLE>
</body>
</html>

It works well but what I want is just a simple displayed return as in the example below without giving the opportunityto generate another number.

For example I would just like the answer to be:

“Your Tracker Code Is”
XXXXXXXXXX

I am sure the answer is simple but so am I.