I would think if you tried to target an ID or class instead of having to add that onclick attribute directly to a link, you should be able to add the same JS you would normally, to make such a popup come up - you would put that either within the global custom code section under site settings or within a single page under page settings.