What I ultimately need to do is run an $.ajax() call and then after that is run, open a new window.
$.ajax()
A use clicks on a \"Preview\" button that saves thei
const newWin = window.open(`${BASE_URL}`, 'expampleName') if (newWin) { newWin.onload = () => { const currentOpenWindow = newWin const href = newWin.location.href } }