简体   繁体   English

使用JavaScript刷新框架页面

[英]Refreshing frame page using javascript

I have the following two frames frame 1 with name="top" and frame 2 with name "main". 我有以下两个框架,第一个框架的名称为“ top”,第二个框架的名称为“ main”。 Now in main there is a button called add number, which brings up a normal browser popup, in this popup I have a form that needs to be filled in and then I click submit on this form and then the main frame should reload, the form processing happens within the popup page and then after processing the main frame should refresh. 现在在main中有一个名为add number的按钮,它会弹出一个正常的浏览器弹出窗口,在此弹出窗口中,我需要填写一个表单,然后单击此表单上的Submit,然后重新加载主框架,该表单处理在弹出页面中进行,然后在处理后应刷新主框架。 The following code does not work, Am I doing something wrong? 以下代码不起作用,我做错了吗?

window.opener.main.reload();

也许这可行:

parent.opener.location.reload();

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM