How to pass value from JavaScript to text popup?


يرجى شرح بإيجاز لمإذا تشعر أنك ينبغي الإبلاغ عن هذا السؤال.


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

X 5 أشهر 2022-07-10T12:01:25+03:00 0 إجابة 2 مشاهدات مبتدئ 0

‫أضف إجابة


مجهول يجيب