Prepare a bucket, cooking pan or large bowl of hot, soapy water. Add a splash of pine-cleaning formula or your preferred cleaning booster if desired.
Clean the inside rim of the window frame, called the window jamb, from either inside or outside the house. Dip a washcloth or sponge in the cleaning solution, wring as much liquid from the material as possible, then scrub the jamb between the outside edge and the stop, which is the ridge against which the window rests when it's closed.
Switch to a toothbrush to remove stubborn dirt and debris, especially where the stop joins the jamb. Grease, oil and other contaminants prevent weatherstripping from properly bonding.
Wipe down the window jamb to dry it. Alternatively, allow it to air dry until it is completely free of moisture.
Unroll a section of self-adhesive pressure-sensitive foam weatherstripping tape. Hold the strip of foam up to the window along the top, the bottom, or on the sides. Align the end with a corner and pull the tape down the length -- keeping it taught but without stretching it -- to the opposite end of the run. Cut to length with scissors or a utility knife.
Peel away the backing that covers the sticky side of the weatherstripping tape. Press the foam in place, on the jamb against the stop, smoothing it as you work. Repeat on each side of the window to completely weatherstrip the opening. Test the closing of the window before proceeding to any other windows.