I have a button on my landing page that allows users to bring up Okta so that they can be authenticated. Once they are authenticated I allow them to use my application. This is the html code behind the button:
<script>
document.getElementById(“clickable”).onclick = function() {myFunction()};
​
function myFunction() {
location.href = “[https://staging.dashboard.researchstudyonline.com/saml/saml/sso/index.php?sso]”;
}
</script>
Not too complex! My problem is that when they click on the button, the wordpress landing page (the calling page) doesn’t close. Is there anything I can add to the above script to get the landing page to close?
[ad_2]