I've always know those as "choose your own adventure" books.