var windowUrl = \"\"; var windowName = \"mywin\"; var w = window.open(windowUrl, windowName, windowSize); w.document.write(html); w.document.close();
T
Try the following:
also take a look at this question - JavaScript window.open only if the window does not already exist
also take a look on the link provided by @Aram Kocharyan: https://developer.mozilla.org/en/DOM/window.closed