[英]Javascript OnClick Event - 2 functions
i used a onclick event for this js function: 我为这个js函数使用了onclick事件:
window.opener.location.href =foobar;
After loading foobar in the Parent window this window should close. 在父窗口中加载foobar之后,该窗口应关闭。 It is a popup (opended with JS) 它是一个弹出窗口(与JS一起使用)
window.close()
应该管用。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.