Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

redirect to another page #76

Open
santhu342 opened this issue Apr 26, 2018 · 1 comment
Open

redirect to another page #76

santhu342 opened this issue Apr 26, 2018 · 1 comment

Comments

@santhu342
Copy link

when i click ok button or confirm button run a function . in this function set time interval after run a windown.open or window.location.replace like.
please help me.

thank q

@Zelrone
Copy link

Zelrone commented Dec 7, 2019

Something like this should work for this case

swal.fire({ title: "sample title", text: "sweet alert message", type: "success", confirmButtonClass: "btn btn-secondary" }).then(function() { // you can add your delay function here window.location = "/your-redirect-alert-here"; });

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants