To display additional information for the user, I create a new tab using the following code:
window.open("/Home/Agreement", "_blank");
Within the Agreement View, there is a button with JavaScript that allows the user to close the Popup and return to the main tab:
<button class="btn btn-primary btn-block" onclick="window.close();">
Return to Home
</button>
This method functions properly on desktop and when accessed through a standalone browser on mobile devices. However, if users access the main page via an embedded Web View within Instagram:
They are unable to close the popup tab by clicking the button. The button does not respond... and when they attempt to go back on their mobile device, the main page refreshes, causing any form input to be lost.