Usually the best way is to rinse as soon as you can. When you get home a regular shampoo followed by lots of conditioner is the best thing. Conditioner is a must because chlorine will dry and damage hair given a chance. It can even affect your natural hair color.
You dont chlorine is bleach and it does not wash out of hair it will bleach it and it will turn you hair red unless you are albino. Thats why alot of swimmers wear a swim cap so that the chlorine can't get on there hair it will also dry your hair out if you do'nt do hot oil treatments
Wash with any shampoo and use rinse conditioner, leave 3 min, rinse with water.
When done towel dry, do not blowdry, wait til next day and do process again. Then blowdry using drops of serum for hair.