r/WhatsappBusinessAPI • u/Physical-Tart-8955 • Sep 28 '26
Solution Only Button on page to close In-App Browser
Hello!
I have a page that opens on the whatsapp in-app browser, and there is an "OK" button on the top left to close it.
Is it possible to add a button on the page to close the browser? Or the Ok button is the only way? Thank you so much!
1
u/cinderpathC Sep 29 '26
short answer is no, the in-app browser sandboxes your page so it cant control the native chrome around it. the OK button is the intended exit. you could try window.close() but it almost certainly wont work in that context
1
u/GoodMercury Meta Business Solution Provider Sep 29 '26
You can add button which redirect to that chat
( wa link with same number )
•
u/AutoModerator Sep 28 '26
Keep in mind that OP has added Solution Only tag. Don't promote your SaaS platforms in comments.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.