Well this was one error i faced during on of my development projects. I have a button click firing a ShowModalDialog window. On close of that window, i want the parent to refresh. But the problem was that, when i close the dialog box or popup, the parent page finishes its loading and shows up with a larger font size.
I first thought it was because of the use of ’em’ for font sizes, in my stylesheet. Did a lot of research and finally got to the bottom of it.
The simplest solution is by using window.location.href=window.location.href for the parent.
This will just refresh the parent page. In case you want to reload the parent, you can use:
window.location.reload(true);
Hope this helps!