This simulation is intended to demonstrate the basic operation of a h-bridge circuit. Try the following:
1) Run the simulation
2) Turn on the upper left and lower right switches by clicking them. Observe the direction of the current. Turn off all switches.
3) Turn on the upper right and lower left switches. Again, observe the current. Notice it goes the opposite way through the DC motor, causing it to rotate in the other direction. Turn off all switches.
4) Turn on the upper right and lower right switches. The simulation should halt, complaining of a short circuit. This condition would normally destroy a transistor switch.