You can see the full example in action below. Note that you may need to give focus to the IFRAME by clicking it before the example will work.