0

I have a modal window and would like to refresh its parent. I am already sending a value back to the parent which works fine so using similar code I am trying to refresh the page as well.

The problem is that I am getting a message saying that reload is not a valid option.

This is the working example of sending the value back:

window.top.document.getElementById('txtCustomerType').value = value;

This is the additional code I am trying to add which does not work:

window.top.document.reload();
connersz
  • 1,153
  • 3
  • 23
  • 64

2 Answers2

1

please try:

window.parent.location.reload()
Manoj Mevada
  • 649
  • 4
  • 7
0

You can use

 opener.location.reload(true);

Some related Questions

  1. Reload parent window from child window
  2. Closing child pop-up and refreshing the parent page
  3. How to refresh parent page after closing popup window in javascript?
Community
  • 1
  • 1
शेखर
  • 17,412
  • 13
  • 61
  • 117