handleOnLoad() {
        let name = this.template.querySelector('.name').value;
        alert(name);
    }

This will work.