I want to force my backoffice (edit : the page where I mamange my site) to open in a "pop-in" window (Edit : special type of pop-up ads created using Dynamic HTML, JavaScript and similar web browser technologies. Because they do not scroll with the web page, they appear to "hover" over the page, usually obscuring the content.) but when I click before the page is fully loaded it opens in a _blank page. That's a problem.
Based on Stackoverflow's old threads (edit : such as How to enable/disable an html button based on scenarios?) I came with the idea of hiding the link to the backoffice and showing it when the document is ready using Javascript's .removeClass at the end of my pop-in script (it's called Clearbox, if you need to know). Theorically, it should prevent the link to the backoffice to appear before the pop-in script is ready to load correctly. I'm probably mistaken as the toolbar just don't appear at all.
$(window).load(function(){ $("div#outils").removeClass('d-none'); });
// At the end of clearbox.js
What's my mistake ? class="d-none" is a Bootstrap 4 standard that initialize the div as not display and is mixed up with other classes I need in div#outils. I'm open to any suggestion, if you know a better way.