javascript - How can I add content to a page after opening the link in a new window/tab? -
i'm trying add content page opened in new tab/window, , nothing seems happening. here of code:
var newwindow = window.open('/window'); newwindow.document.body.innerhtml += '<div>this test</div>';
any ideas?
as have tagged jquery:
var w = window.open(); var html = '<div>this test</div>'; $(w.document.body).html(html);
Comments
Post a Comment