javascript modal pop without jquery

2.5k Views Asked by At

Is there a way to create a purely javascript (not jquery) modal pop-up. Does anyone know of a library where I can say Modal_ask (option1,option2,option3,...) and it stops the javascript processing until a value is returned.

Similar to confirm, but with variable number of options.

Thx

R

1

There are 1 best solutions below

0
On

Shameless plug for my vanilla JS modal pop-up script: https://github.com/cferdinandi/modals