accessing and modifying tab opened using window.open in google chrome
        Posted  
        
            by sonofdelphi
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by sonofdelphi
        
        
        
        Published on 2010-04-08T06:27:57Z
        Indexed on 
            2010/04/08
            6:33 UTC
        
        
        Read the original article
        Hit count: 317
        
JavaScript
|google-chrome
I used to be able to this to create an exported HTML page containing some data. But the code is not working with the latest version of Google Chrome (It works alright with Chrome 5.0.307.11 beta and all other major browsers).
function createExport(text) {
    var target = window.open();
    target.title = 'Memonaut - Exported View';
    target.document.open();
    target.document.write(text);
    target.document.close();
}
Chrome now complains that the domains don't match and disallows the Javascript calls as unsafe. How can I access and modify the document of a newly opened browser-tab in such a scenario?
© Stack Overflow or respective owner