HOW passing dataset – fields value from lightbox to iframe javascript variable

Start to run everything when page is completely ready…

import {lightbox} from 'wix-window';

$w.onReady(function(){
	let db=lightbox.getContext();
	let url_360=db.url360; 	

	//$w('#button2').onClick(()=>{
		$w("#html1").postMessage(url_360);
			$w("#text1").text=db.location;
	//});
});

Another one using some time-delay…

import {lightbox} from 'wix-window';

$w.onReady(function(){
	let data = lightbox.getContext();
	let url_360 = data.url360; 
	$w("#text1").text = data.location;
	setTimeout(()=>{startHTML(url_360);},350);
});

function startHTML(value) {
	$w("#html1").postMessage(url_360value);
}

Does it work better?