0

Function without JavaScript

Is it possible to add interactivity without js? I know that you will say no! But i have done. Without js i maked click to open click to close. If you learned something please like and share. https://sololearn.com/compiler-playground/Wb58e5CJeqxz/?ref=app

26th Mar 2024, 12:35 AM
Ahmed Raihan
Ahmed Raihan - avatar
2 Answers
+ 4
You can replace a very small amount of Javascript's interactivity with CSS using the "checkboxes method". Here it is explained: https://css-tricks.com/the-checkbox-hack/. All of Javascript's functions can not be replaced, though, so you would need to use JavaScript for a dynamic website with lots of different interactive functions.
26th Mar 2024, 6:20 AM
Ruslana Vardanyan
Ruslana Vardanyan - avatar
0
Yeah that's true
26th Mar 2024, 8:17 AM
Ahmed Raihan
Ahmed Raihan - avatar