I have an iframe:
If something.html from externaldomain.com has the css:
iframe must have attribute ID
ID
window.parent.document.getElementById('iframeid').contentWindow.document.execCommand('print', false, null);