Closed Ok9xNirab closed 5 years ago
You can use JavaScript's location.href
to redirect the user.
swal({
title: "Go to Google?",
text: "Clicking the button will redirect you to Google's website",
})
.then((shouldRedirect) => {
if (shouldRedirect) {
location.href = "https://www.google.com";
}
})
thanks
Hi, Here is my javascript code ......I can't add link in "ok" button;
``