The generated applets do not support interactions. You need the B-Prolog system to interact with the programs.