I am creating a new window that will contain text that user will print. I would like to do something similar to this:
var new_win = window.open(); $(new_win.
To open popup window and modify it's content you can use this code
var popup = window.open('/' + window.URL_PREFIX + 'print/', '_blank'); popup.onload = function() { $(popup.document.body).html('hello'); };