+ 3
What did I do wrong?
What does this error mean? https://imgur.com/a/DS05nie The HTML code has this: <img id="cookie" src="image link" onclick="cookie(1)"></img> And the javascript code has this: var cookies = 0; function cookie(cantidad) { cookies += cantidad; document.querySelector("#cookies").innetHTML = toString(cookies); }
3 ответов
+ 4
Oh, I think I understood. When using the name "cookie" in my function, an error occurred ...
+ 3
We will better understand your issue if you post your code
0
You cannot access to cookies on SL