Nuxt 3: How to close window open javascript
How can I close a popup window when using window.open()?
Step 1: Open the popup using window.open(url, "", "width=200,height=100")
Step 2: After completing an action successfully in the popup, receive a Firebase notification to close the window and call an API to get the list.
2 Replies
Hi @SON-X. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
----------------------
I'm sorry, but the knowledge sources provided do not contain information about programmatically closing a popup window opened with JavaScript's window.open() in the context of Nuxt 3, nor do they cover handling Firebase notifications to trigger such an action. The available sources focus on Nuxt 3's navigation, modal, and overlay components, but do not address direct manipulation of browser windows or integration with Firebase notifications for this specific use case.
If you need guidance on Nuxt 3's navigation or modal handling, or on using navigateTo for client-side routing, I can help with that. For your specific question about window.open and closing popups via notifications, the knowledge sources do not provide enough information to answer confidently.
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------
<@832631102866849824> Kapa.ai is still learning and improving, please let me know how I did by reacting below.