Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Close a window after suitelet executes
I am creating a suitelet to run in a pop-up window.
I can open the pop-up from an inline HTML button using
<script type="text/javascript"> window.open(suitlet url); </script>.
suitelet runs and uploads the file as needed, but how to close the window.
1 - can a suitelet access the window object, and do a window.close()?
2- is the only way via
response.write('<script type="text/javascript"> window.close();</script>'); 0