manipulate elements found on another page

Sorry, forgot to STRINGIFY…

import {local} from 'wix-storage';

let data = JSON.stringify({
  element: "elementIDhere",
  command: "show",
});

local.setItem("key1", data);

And you do not need the → # ← in the data itself. Delete it inside data.

You already have it in your PAGE-B-CODE.