使用javascript的隐藏窗口 [英] Hidden window using javascript

查看:132
本文介绍了使用javascript的隐藏窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

只是想知道是否可以使用javascript创建隐藏窗口?

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

推荐答案

您可以创建一个iframe

You can create an iframe

var element = document.createElement("iframe"); 
element.setAttribute('id', 'myframe');
document.body.appendChild(element);

您可以通过将iframe的宽度和高度设置为零或将其可见性设置为隐藏来隐藏iframe样式表。

You can hide an iframe by setting its width and height to zero or by setting its visibility to hidden in the stylesheet.

这篇关于使用javascript的隐藏窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆