Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在单击按钮时关闭当前窗口,并使用 java 脚本打开一个新窗口。
如果这是可能的。任何人都可以帮助我吗?
提前致谢 。
这很简单,很明显你甚至没有尝试过搜索
my_window = window.open("", "mywindow","status=1,width=350,height=150"); if(false == my_window.closed) { my_window.close (); } else { alert('Window already closed!'); }
阅读更多:
窗口.打开窗口. 关闭