

If I use showModalDialog() instead of window.open() to open the popup I am able to retain the values but I need to copy values from the popup window which is not possible through showModalDialog().Ĭan anyone suggest a way to retain the values in previous page on click of back button after window.open() call. Here if I click on back button without touching the popup window button I am able to retain the changed value 20 in previous page i.e, page1.īut if I open the popup window by clicking on popup button and after closing it if I click on back button I am going to page1 button the textbox value is getting reset to default value 5. I change the value of the textbox to 20 and clicks on submit I will get page2. Popup button which opens a simple jsp with javascript window.open() method. Submit on page1 leads to page2.jsp which has two buttons 1.Back buttonĢ.

contains a simple textbox with default value 5 and a submit button.
