Advertisement
deddyprianto

Redirecting User

Jan 24th, 2022
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 6. Redirecting User
  2. you can redirect the user to any specific URL using JavaScript.
  3.  
  4.  
  5. const redirect = url => location.href = url
  6.  
  7. /* call redirect (url) whenever you want to redirect the user to a specific url */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement