信息发布→ 登录 注册 退出

js 输出内容到新窗口具体实现代码

发布时间:2026-01-11

点击量:
找了好久,都没有~!!!

在w3c上面找到的,留下来以后备用~!
复制代码 代码如下:
<html>
<body>
<script type="text/javascript">
myWindow=window.open('','','width=200,height=100')
myWindow.document.write("This is 'myWindow'")
myWindow.focus()
myWindow.opener.document.write("This is the parent window")
</script>
</body>
</html>
在线客服
服务热线

服务热线

4008888355

微信咨询
二维码
返回顶部
×二维码

截屏,微信识别二维码

打开微信

微信号已复制,请打开微信添加咨询详情!