@bettyboop: Are you using Wix to build your site, as this thread has been discussing, or something else?
If you're using Wix, and if that doesn't let you paste in our ready-made button code but does allow you to specify a link target in their link-maker widget, use target="ej_ejc" for your cart buttons, and make sure you are picking a different target name for your non-cart popup links. Basically, what the target attribute says is, "Open this link in the window/tab named 'ej_ejc', or if there isn't one open already, open a new window/tab and give it that name." Links that use the same target name will re-use that same popup window/tab; links with different target names will each use separate windows/tabs according to which target name they reference.
If you are using our standard cart button code, where the cart appears as an overlay "inside" your page instead of opening the cart in a separate window/tab, the cart can only appear inside the same page where the cart buttons are placed. We don't have any way to make a cart button close the popup where it's located and make the cart appear back on the main page instead. There may be custom javascript methods to accomplish that, for which we'd refer you to our developer directory if you'd need help setting that up:
http://www.e-junkie.com/ej/developer-directory.htm