I\'m running this function to open a new window.
function htmlNewWindow(id) { var html = $(id).html(); var newWindow = window.open(\'\'); newWind
Try this:
var newWindow = window.open(''); newWindow.document.createElement('script'); script.src = 'js/myScript.js'; newWindow.document.head.appendChild(script);