+ 1
How to create a dialog box with CSS and Javascript?
I want to create a dialog box that will open on button click but i want to apply some css to it.How can i do it?
3 Respuestas
+ 14
Here's an example:
https://www.w3schools.com/howto/howto_css_modals.asp
0
crete a div with the whole box in html and 'style="display:none"' and
in javascript you toggle the display attribute if the button is clicked.
you can call the function with the onclick attribut in html
0
thanks