This is mostly referred to as betting in the middle. In this case, the bettor is betting on both sides of the same bet, with the sole aim of winning a bet regardless of the outcome.