Page redirect not working after firebase update in javascript : Below is my javascript function, which is properly writing to firebase. However, page redirect is not working.        

     <script type="text/JavaScript">
            function bookappnt() {
            
            var appname = document.getElementById("app-name").value;
            
            var ref = new Firebase("https://dermaenbgtt1233.firebaseio.com/"); 
            var usersRef = ref.child("Appointment-Details");
            
            usersRef.push({
            applicationname: appname
            });
            
            windiw.location.href = "http://www.example.com";
            
            }
            </script>
        
    <input type="text" id="app-name" class="user" placeholder="Name">
    <input type="submit" value="Book appointment" onclick ="bookappnt()">