I want to create a popup, directly in JS, that fires when text is selected and a button is clicked
My ultimate goal is when the user selects the desired area of text and clicks on the button, it triggers a popup.
Please point me to the right way how to do it