The invention relates to an electronic door lock. The electronic door lock comprises a door leaf or window sash, a door or window frame and an electronic lock head, the electronic lock head is installed on the door leaf or the window sash and inside a
side stick of the door leaf or the
side stick of the window sash in a clamped mode and corresponds to an groove in the door leaf or the window sash; the electronic lock head comprises a lock head body, a motor, a controller, a
vibration sensor and a battery, the lock head body is connected with the motor, and the motor and the
vibration sensor are connected with the battery through the controller; the
vibration sensor is installed inside the door leaf or the window sash, and according to comparison results between vibration sensor detected signals and
password signals stored in the controller, the controller starts the forward and backward rotation of the motor. According to the electronic door lock, the controller detects the vibration sensor detected signals and starts the forward and backward rotation of the motor, thereby the door lock is unlocked, no key or card exists, so that no loss occurs, the door lock is installed inside the
side stick of the door leaf or the side stick of the window sash, no key hole exists, the door lock is entirely located in a hidden place, the safety is higher, and one more protection means is added to a family.