Hi Neeraj,
use the below code to create a new window and display the text.
w = open("","","width=200,height=100");
w.document.open();
w.document.write("<html><title></title><head></head><body>"+c+"</body></html>"); // to show some result of the operation.
//w.document.write("<html><title></title><head></head><body>Hello World...!!</body></html>"); // to show static content.
w.document.close();
Aug 23, 2010