T
T
tem12qaz2020-08-18 23:43:46
JavaScript
tem12qaz, 2020-08-18 23:43:46

How to open a window (alert) in an extension?

5f3c3dc9045f5908040961.png
When calling the alert, confirm, promt windows through the extension script, the window appears under the extension icon, partially going beyond the browser window. What code will open a window in the middle of the browser window?

now it's just "alert('text')"

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2020-08-18
@tem12qaz

What code will open a window in the middle of the browser window?

none of the existing ones.
you need to make your own custom alert and position it in the center.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question