right now im useing code like this to redirect me to another website--> alert("close this tab 2 run"); window.location = 'https://www.google.com/?safe=active&ssui=on'; console.log("This code is executed after alert"). im just wondering if anyone could help me?
btw i just need someone to tell me if there is a error:)
Is this what you need?
if (window.confirm('close this tab 2 run')) {
// When the 'Yes' button is clicked
window.location = 'https://www.google.com/?safe=active&ssui=on';
console.log("This code is executed after alert");
}
else {
// When the 'No' button is clicked
}
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments