Two parts in one simulation
Use the switch at the top of the panel to move between two views. Charging shows a lab bench from the side, with something to rub, a cloth to rub it with, and an object to test it on. Fields shows charged metal balls from above, with the electric field lines that surround them.
Rubbing moves electrons
Every material starts with equal numbers of protons and electrons, so it carries no overall charge. When two different insulators are rubbed together, electrons are dragged from one surface to the other. In the simulation each stroke sends a blue electron symbol hopping across, and each + or − symbol stands for five nanocoulombs. Polythene and the balloon pull electrons in and turn negative. Acetate and glass give them up and turn positive. Look at the Total charge card: it stays at zero, because charge is only moved from place to place, never created or destroyed.
Pushes and pulls without contact
Hang a rubbed rod from a thread and bring a second charged object close. If both carry the same sign of charge, the hanging rod is pushed away. If the signs differ, it is drawn in. The force acts across the gap, and it fades quickly as you drag the rod further off.
Uncharged things are attracted too. A charged rod shifts the electrons inside a bit of paper, so the side facing the rod ends up with the opposite charge. That side is nearer, so its pull wins and the bit leaps up. A stream of water bends towards the rod for a similar reason, and a balloon with enough charge stays up on a wall.
Insulators, conductors and earthing
The rods are insulators, so their charge stays where the cloth put it. An earthed wire touching one end removes only the charge at that end, and any paper clinging further along stays put. The cap, stem and leaf of the gold-leaf electroscope are metal, so electrons can move through them. Hold a charged rod near the cap and electrons shift between the cap and the leaf, so the leaf and stem carry the same charge and repel: the leaf rises. Earthing the cap lets electrons pass to or from the ground. Remove the earth before the rod and the electroscope keeps a charge opposite to the rod's.
Field lines and the test charge
An electric field is the space around a charge where another charge feels a force. Each line here is traced in small steps along the push on a tiny positive charge, adding up the effects of every charge in the picture. Arrows run away from positive charges and into negative ones, and the lines spread apart where the field grows weaker. The small yellow + is a positive test charge (the Test button shows or hides it): drag it round to see the force at each point.
Plates, sparks and sharp points
Between a pair of oppositely charged plates the lines run straight and evenly spaced, so the field is uniform; near the ends they curve outwards. When the field across a gap reaches roughly three million volts per metre, dry air starts to conduct and a spark jumps. On a conductor with a sharp point, the point has by far the strongest field, so it leaks charge into the air first.
What the model leaves out
The balls are treated as point charges, which ignores the way nearby conductors shift each other's charge. Real rubbing depends on how clean and dry the surfaces are, and the breakdown value of air varies with its pressure and dampness.