Just wanted to know if it is possible to create a hidden window using javascript?
You can create an iframe
var element = document.createElement("iframe");
element.setAttribute('id', 'myframe');
document.body.appendChild(element);
You can hide an iframe by setting its width and height to zero or by setting its visibility to hidden in the stylesheet.