Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hidden window using javascript

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

like image 215
user475685 Avatar asked Mar 03 '11 12:03

user475685


People also ask

How to hide a window in javascript?

style. display = "none"; is the ideal way to have it hidden as far as I know.

How to open window in hidden?

Press Alt + Tab to select the missing window. Press Alt + Space + M to change the mouse cursor to the move cursor. Use the left, right, up or down keys on your keyboard to bring the window back into view.

What is hide () in Javascript?

The hide() method hides the selected elements. Tip: This is similar to the CSS property display:none. Note: Hidden elements will not be displayed at all (no longer affects the layout of the page). Tip: To show hidden elements, look at the show() method.


1 Answers

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.

like image 67
Andrey Avatar answered Oct 21 '22 03:10

Andrey