You're absolutely correct. I forgot about the distinction between things that happen inside and outside the iframe.