I found a solution to popup modals from this question and implemented this code:
I know this section of code is what is causing the Modal to popup when someone lands on the page (which is really cool):
SP.SOD.execute('sp.ui.dialog.js', 'SP.UI.ModalDialog.showModalDialog', options); return false;
But I would like to make this modal popup when someone clicks on a link within this page instead of popping up when someone lands.
This code is implemented currently the same way as it was described in this link here.
How do I make it so that when someone clicks a link on some text within my page it'll have this modal pop up?
Edit: any JS that I put on the page that isn't Embed or in a CEWP or SEWP gets removed and so putting the "onclick" link on the text itself isn't working despite the JS being implemented on the page via a link to the document in the Site Assets folder.