I think a trip wire at the door should do it. String it up whenever you are gone. If he hits his head on the floor enough times, maybe then he will remember.

Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.