Hi there,
Currently, I'm storing a user value from an input field into a session wix-storage variable, and pass the value to the next page.
import {session} from 'wix-storage'; import wixLocation from 'wix-location'; $w.onReady(function () { }); export function save_zip_quote(event) { let UserName = $w("#zip").value session.setItem("UserName", UserName) wixLocation.to("https://secondURL") }
I can easily retrieve the value on the second page.
import {session} from 'wix-storage'; $w.onReady(function () { let value = session.getItem("UserName") $w("#text29").text = value });
To prove that the value is passed I showed it as text.
What I would like to do, is to use that value to replace a value on a javascript I have installed in an iFrame on the second page.
How can I include the save value into the JavaScript?
Thanks!
See the article Sending a Message from Page Code to an HTML Element.