{TametheBots}

localStorage API

The Result:

localStorage? It fails

Testing if Googlebot can use the localStorage api. There is a script in the head that sets a value in localStorage:

<script>
localStorage.setItem('ttbTest', 'It Works');
</script>

There is then another script at the bottom of the page that takes this value, and changes the innerText of the results span.

<script>
let result = localStorage.getItem('ttbTest');
document.getElementById("result").innerText = result;
</script>

< Back