$w.onReady(function () { // Get a reference to the input field and the button const input = $w("#input1"); const button = $w("#button11"); // Add a click event listener to the button button.onClick(() => { // Get the user input from the input field const userInput = input.value; // Generate the URL with the user input const url = `https://oainsight2.onasset.com/track/${userInput}/`; // Open the URL in a new window window.open(url, "_blank"); }); });
top of page
bottom of page