import wixLocation from ‘wix-location’;
$w.onReady(()=>{
let myValue;
$w('#input1').onChange(()=>{
myValue = $w('#input1').value;
console.log("My-Value: ", myValue);
});
$w('#myEnterCodeButtonIDhere').onClick(()>{
wixLocation.to (myValue);
});
});
- Add an input-element onto your page.
- Add the showed code above onto your page.
- Check all element-IDs.
- Type an web-address into the input and click onto your Enter-Code-Button.
- Also check the CONSOLE (this for you can deactivate…
//wixLocation.to (myValue);