flask javascript ajax example Example 1: call javascript function flask if ("True" == "True") Example 2: call javascript function flask if ("False" == "True")