Best way to open a prompt to request userdata from options_ui

I need to request some data from the user in a prompt/window.

Should I just create a new popup window with browser.windows.create or is there a better way to create a simple prompt?

Thanks

If it is modal to your options ui you’ll porbably want to have an overlay to your options ui.

If you don’t care about how it looks and its a simple string to enter, you could use window.prompt, no?

I guess what I am asking is if a feature like this is available in the WebExtensions API?

Otherwise I will likely use a javascript/jquery modal pluging.

It depends. From background script or from a popup, I think the usual prompt/alert dialogs don’t work. So you’ll have to create your own UI.

I ended up using Bootstrap to build the user interface. Plenty of nice modals features in that package.