I think this is not possible, but not sure.
- You can open a page in a new tab in Wix.
- But you can’t close a current tab as of my knowledge.
You can read this, i don’t think that this information is already outdated…
-
Maybe there are other solutions for your problem, like for example using a LIGHTBOX instead ? You can control a LIGHTBOX completely by code.
-
Or another approach…
New Feature: Tabs with no Code
Surely you will find more informations inside this forum, if you do a closer research.