I'm doing a Jokenpo game, and I need a username to put on the Score. In the case I created a home page with a textfield for the user to enter his name. Just after typing your name, you should open the other page where the game is with the options.
<div class="container">
<input type="text" id="nameJogador" placeholder="Nome do Jogador">
</div>
$(document).ready(function(){
$("#nameJogador").focusout(function(){
var nomeJogador = $("#nameJogador").val();
//$("input#nameJogador").load('index_game');
alert(nomeJogador);
});
});