Electrochromic characterizations of copolymers based on 4,4′-bis(N-carbazolyl)-1,1′-biphenyl and indole-6-carboxylic acid and their applications in electrochromic devices