how to prevent switch to opener tab on js window.opener reload in firefox Code Answer

Hello Developer, Hope you guys are doing great. Today at Tutorial Guruji Official website, we are sharing the answer of how to prevent switch to opener tab on js window.opener reload in firefox without wasting too much if your time.

The question is published on by Tutorial Guruji team.

When reloading opener window in JavaScript this way:

window.opener.location.href = window.opener.location.href;

The opener tab gets focused in Firefox and this is undesirable. I don’t get this behavior in Chrome. It may be due to a Firefox update because this is an old system and this problem is not reported previously.

Answer

This is https://bugzilla.mozilla.org/show_bug.cgi?id=1694927 which is fixed in Firefox 87.

We are here to answer your question about how to prevent switch to opener tab on js window.opener reload in firefox - If you find the proper solution, please don't forgot to share this with your team members.

Related Posts

Tutorial Guruji