Saving elements

Saving elements
0.0 0


Hello, i’ve been making an array and a button usiong html and javascript, and i would like to add some objects to my array and save this element so the next time i open my file, the object that i pushed inside my array is visible and i can make it appear using this :

function OpenList() {

	for( i = 0; i < joueurs.length; i++ ){



I’ve edited your post for readability. When you enter a code block into the forum, remember to precede it with a line of three backticks and follow it with a line of three backticks to make easier to read. See this post to find the backtick on your keyboard.

Do you have a JSFiddle or Codepen of your project?

Also, when you say “open my file”, do you mean when you open the page?