Redirect to next page after signing up

Viewed 24

[I am creating a sign-up page for our web app. The problem is, as I want the user to redirect to another page after signing up, the firebase won't read this line

     set(ref(database, 'users/' + user.uid),{
              name: name,
              email: email,
              number: number

          })

it move to read this line.

          window.location = "home.html";
          })

]1

enter image description here

0 Answers
Related