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:

localStorage.setItem('ttbTest', 'It Works');

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

let result = localStorage.getItem('ttbTest');
document.getElementById("result").innerText = result;

< Back