//in the page that will pass data to a lightbox
import {session} from 'wix-storage';
export function button1_click(event, $w) {
session.setItem('PassingData', $w('#input1').value); //setting a data to pass, an name it as PassingData
}
// in the lightbox that will recevie data.
import {session} from 'wix-storage';
$w.onReady(function () {
const Data = session.getItem('PassingData');
$w('#hello').text = "Data";
});