posted 8 years ago
How are you selecting the icons in the iframe to attach the click handlers? In jQuery, for example, to select your image (by id) on the main html you could do something like this:
$('#icon1');
But if that image is now inside an iframe, your selector needs to reach inside the iframe like this:
$('#iframe1').contents().find('#icon1');
(Sorry, I don't know the plain JavaScript for that.)