If the parent gives the child what he wants (sweets) he will be reinforcing the behaviour. So the best thing to do is ignore tantrums, eventually extinction will occur. Alternatively, follow the advice in the advert!
{youtube:http://www.youtube.com/watch?v=HCHDGxlEFS0]