Older pools typically have what’s called an “In Deck Junction Box” or J-Box installed just above the fight fixture on the pool deck. In most cases it's directly under a diving board and a few inches from the coping edge . This box is where the cord from the pool light connects to a 110VAC power source. These types of junction boxes are dangerous and NO longer meet current electrical code standards. They have been deemed an electrical hazard due to the possibility of water entering into the junction box and causing electricity to be conducted into the pool water. To make matters worse, most all of these old pools do not have a Ground Fault Circuit Interrupter (GFCI), a device used to protect against any electrical leakage or shock into the pool water.
If your pool has one of these types of junction boxes turn off the power breaker for the light and call a licensed pool technician to have the junction box relocated away from the pool and above the water level to meet current codes, Another option is to replace the light with a low voltage fixture with a low-voltage transformer.