How best to implement a modal window?

Hello. How best to implement a modal window on the website? Now modal Windows are implemented using data-attributes. Maybe better to do with JSON? Or both have a right to life?
March 19th 20 at 08:47
1 answer
March 19th 20 at 08:49
browser support is weak, well it's just a recommendation for html 5.1 have great doubts about the need to use it soon. Although no doubt it's interesting.
Nevertheless, Your option even sloppy way of default. Because I can not imagine how to implement a modal window using data-attributes or JSON. I'd love to see it. - camylle65 commented on March 19th 20 at 08:52
@camylle65, I understood that the button registers some data-not=100 data-other="WOW", and clicking these variables are used in module

but we're not sure \_(ツ)_/ - Duane.Cormier commented on March 19th 20 at 08:55
@Duane.Cormier, in this embodiment, it is not clear what does modelka? data-not=100 data-other="WOW" to any tag and then add a million ways to use a million places. The question then
How best to implement a modal window?

Here the author of the question or does not understand what it does and how it works, or not correctly formulated a question.
Until I read this: "How to fix the car? Sitting in the car trying to scratch shit. I can not understand which hand to do it. the left or right." What's the car? It is better to give the info you're right-handed or left-handed. - camylle65 commented on March 19th 20 at 08:58

Find more questions by tags HTMLJavaScriptCSS