The definition of a bystander is a person who stands near but doesn't take part in an event.(noun)
Someone who happens to walk into a store while it's being robbed is an example of a bystander.
See bystander in Webster's New World College Dictionary
See bystander in American Heritage Dictionary 4
Learn more about bystander