-1

I am very new to JS. I have a script that reads selected text on a web page and returns converted text. I am able to log this to the console fine, but I need this to be displayed as a popup text box instead. How can I do that?

I tried using alert(), bit it is not supported on background windows (at least on firefox).
Console log:
alert() is not supported in background windows; please use console.log instead.

Sorry for the noob question. Please let me know if I can include anything else which might be of help

Siddhant Sadangi
  • 125
  • 4
  • 11

1 Answers1

0

I don't have enough reputation to make this a comment

You can make a custom modal to show your result. Read this to help get that: https://www.w3schools.com/howto/howto_css_modals.asp

Platinum
  • 68
  • 10