The parent window cointains just a table with data and a link to the child window, when the child window is opened then executes a js function in the parent using the window.opener property, the js function in the parent refresh the table using ajax.
The problem is with window.opener because is NULL when the user open the link using the right click (contextmenu).
Ok I know it is late but I leave this here for future use
to the target=”_blank” link
<a href="/folder/child.jsp" target="_blank" rel="opener">OpenChild</a>
The opener will be passed through the child page
In the following cases, the browser does not populate window.opener, but leaves it null:
The opener can be omitted by specifying rel=noopener on a link, or passing noopener in the windowFeatures parameter.
From Firefox 79, windows opened because of links with a target of _blank don’t get an opener, unless explicitly requested with rel=opener.
Having a Cross-Origin-Opener-Policy header with a value of same-origin prevents setting opener. Since the new window is loaded in a different browsing context, it won’t have a reference to the opening window.
sidenote: btw there is no difference if you open a page with right or left click