How would you lock a door from the outside???? (read info im not weird)? It's for a book.......im young and dumb i want help if i...

It's for a book.......im young and dumb i want help if i ever want to fufill my dream of publishing my writings. fundamentally odd ask yes i know but how could you lock like a bedroom door or another door on the outside locking someone on the inside inside. Yeah im not doing anything wacktacular within the book or anything crazy or something thats dirty lol. Did you know i ramble?
Answers:    It's not a weird interview at all. There are doors near locks that allow you to lock the door from the outside without using the switch.

My house main door is such a mode that once you close the door the only course to open from the outside is by using the push button, kind of death-defying if you are those who always forget to fetch the key.

Then in attendance are those with a push button at the core of the door knob. Pressing the button in will lock the door. Normally, these locks come beside anti-locking feature that will automatically unlock itself when you close the door from the outside. To override these piece, you have to turn and hold the knob surrounded by the 'open' position when closing the door. Then the door will be locked.

But if you story is about locking someone surrounded by the person must be any very young at heart or very frail that he or she cannot/don't know how to start the door. Else, the only process to lock an able creature is to have a knob lock or bolt lock from outside.
Some locks are keyed on both sides. Some can simply be locked from one side.