I have a page where I open a new window like so
var myWindow = window.open("", "", "width=755.9100,height=347.7200");
myWindow.document.body.append(img);
I want to add styles some style to this new window from the previous window
@page {size: A4;margin: 0;@media print {html, body {width: 210mm;height: 297mm;}
How do I add this to head tag in html through js?