Menu
From what I understand, this is not possible. Is there a workaround for it though?
For example this does not work:
[code=php]function Start(){
var name = window.prompt(“Please enter your player name:”, “unnamed”);
}
function Stop(){
endofgame.innerText = name +”, your total score is:” + points;
}
So say I have two buttons: Start and Stop. When a user clicks start, I want it to ask for their name. When they click stop, I want it to list their name along with some additional information.
What can I do?