@HumanDestroyer
Of course i did not understand your example, that - it is sure - could help me to comprehend better.
In order to say more about this discussion, i will post a piece of code that - it is again sure! - you will understand fully, especially for the reason that it is very simple.
CODE
<!-- I have a "chessboard" 8x8 in wich every td has an id -->
<button onclick="one()">1 e4 e5</button>
<button onclick="two()">2 Nf3 Nc6</button>
<script>
function one() {
var x = document.getElementById("e2");
x.innerHTML = "";
var x = document.getElementById("e4");
x.innerHTML = "♙";
var x = document.getElementById("e7");
x.innerHTML = "";
var x = document.getElementById("e5");
x.innerHTML = "♟";
}
</script>
<script>
function two () {
var x = document.getElementById("g1");
x.innerHTML = "";
var x = document.getElementById("f3");
x.innerHTML = "♘";
var x = document.getElementById("b8");
x.innerHTML = "";
var x = document.getElementById("c6");
x.innerHTML = "♞";
}
<script>
END
This sequence of instructions, the buttons, the functions, work well. But i repeat myself asking you now how to show to the video again 1 e4 e5 after have clicked the 2 Nf3 Nc6 button?
@HumanDestroyer
Of course i did not understand your example, that - it is sure - could help me to comprehend better.
In order to say more about this discussion, i will post a piece of code that - it is again sure! - you will understand fully, especially for the reason that it is very simple.
CODE
<!-- I have a "chessboard" 8x8 in wich every td has an id -->
<button onclick="one()">1 e4 e5</button>
<button onclick="two()">2 Nf3 Nc6</button>
<script>
function one() {
var x = document.getElementById("e2");
x.innerHTML = "";
var x = document.getElementById("e4");
x.innerHTML = "♙";
var x = document.getElementById("e7");
x.innerHTML = "";
var x = document.getElementById("e5");
x.innerHTML = "♟";
}
</script>
<script>
function two () {
var x = document.getElementById("g1");
x.innerHTML = "";
var x = document.getElementById("f3");
x.innerHTML = "♘";
var x = document.getElementById("b8");
x.innerHTML = "";
var x = document.getElementById("c6");
x.innerHTML = "♞";
}
<script>
END
This sequence of instructions, the buttons, the functions, work well. But i repeat myself asking you now how to show to the video again 1 e4 e5 after have clicked the 2 Nf3 Nc6 button?