08-24-2017 09:42 AM - edited 08-24-2017 10:36 AM
I'm execting a STP in a new from my main web page.
<form target="_blank" action="http://<UrlToMySTP>" method="get" enctype="multipart/form-data">
And I would like it to close automatically when it's done.
data _null_; file _webout; put '<HTML>'; put ' <HEAD>'; put ' </HEAD>'; put ' <BODY onLoad="window.close()">'; put ' </BODY>'; put '</HTML>'; run;
but the browsers don't allow that (security vulnerability)
Scripts may close only the windows that were opened by it.
Is there another way to close the page?
08-25-2017 08:29 AM
Can you explain why you want to do that or what you're trying to achieve? There may be a different way to get the result that you need.