なぜボタンとonclickイベントを以下のコードのような関数に置いてもボタンをクリックできないのですか?それについて私に説明してください。以下はソースコードですなぜボタンをクリックできないのですか?
var Stop = function(){
document.getElementById("scoring").innerHTML = "<div style='background-color: black; position: absolute; top: 20%; left: 37%; width: 30%; height: 50%; color: white; font-size: 32px; font-family: Courier;'>" + "YOUR SCORE: " + numberCoin + "<br>" + "<br>" + "<button type='button' width='50%' height='10%' onclick='playinstruction()'>RESTART</button>" + "</div>";
}
'playinstruction'と呼ばれる関数がありますか?この機能のコードを教えてください。グローバルにアクセス可能ですか? – lerouche