Javascript must get a selected text and put it in prompt box on a new page

How can we have Javascript copy the selected text and put it in prompt box on a certain newly opened Url page always behaving readily prompt user in a box

hello and welcome to fcc forum :slight_smile:

you know, its always better of you have a live link where people can go and see it for themselves…

besides that, i would say

  • you can use a variable (or react state variable) for getting that “selected text” value and then pass it on a “modal alike” feature instead of a system provided"prompt box"

hope this was helpful, happy coding :slight_smile:

1 Like

Just on need automation for openAI chatGpt

might still there’s possible light of hope

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.