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