How to refresh parent page after closing popup window in javascript?

前端 未结 2 661
孤独总比滥情好
孤独总比滥情好 2021-02-06 18:19

I have one page list.jsp having list of all records in table and one button at top to add new record.

I want to open add.jsp as a popup window.

2条回答
  •  面向向阳花
    2021-02-06 18:47

    As from my comment from the other answer you just need to handle the window.onunload event and use the window.opener property to tell the calling page to be refreshed.

    2.add.jsp

    
    
        
    
                                     
                  
提交回复
热议问题