Hidden window using javascript

user475685 picture user475685 · Mar 3, 2011 · Viewed 59k times · Source

Just wanted to know if it is possible to create a hidden window using javascript?

Answer

Andrey picture Andrey · Mar 3, 2011

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.