If your screen or storm door is always slamming shut, consider installing a closer like the one shown below.
Installation instructions come with most kits.

Here are a few basic guidelines: Make sure all the other door hardware is in good working order.
Installing a Hydraulic Door Closer
To install a hydraulic door closer, fasten the door-mounting bracket to the door’s top rail. Mount the jamb bracket to the head jamb.
Adjust the length of the chain. If it’s too short, you won’t be able to go in and out easily; if it’s too long, the door will keep slamming shut.

Installing a Pneumatic Door Closer
To install a pneumatic closer, fasten the door-mounting bracket to the door’s top rail.
Adjust the closing speed by turning the adjustment screw in the end cap.

To install a hydraulic closer, attach the bracket and cylinder and the jamb-mounting bracket. Adjust the closing speed by inserting a screwdriver into the adjustment screw, pushing the screwdriver in, and turning the screw 180 degrees.

Here is a helpful video that shows how to install a screen door closer: