Answers for "how to redirect the user to any specific URL using JavaScript."

0

how to redirect the user to any specific URL using JavaScript.

const redirect = url => location.href = url

/* call redirect (url) whenever you want to redirect the user to a specific url */
Posted by: Guest on January-24-2022

Code answers related to "how to redirect the user to any specific URL using JavaScript."

Code answers related to "Javascript"

Browse Popular Code Answers by Language