I have the following line of code to refresh the parent form OnClose of Child form:
var popup = window.open(url, 'New Note', 'width=700,height=700');
popup.focus();
Problem at below line
popup.onbeforeunload = RefreshGrid;
If I attach a breakpoint at above line using Developer Tools in IE-11 then alert is displayed and SomeWork is done: If I remove break-point then alert is not displayed and SomWork in not done.
function RefreshGrid() {
alert("refresh grid");
SomeWork();
}
I have tried alot of different methods but all have the same problem, runs with Break-point and does not run without break-point.