0
Why body onclick isn't work?
I create side navigation drawer for closing I create function and add it to the body tag as onclick but never work I actually set body width and height 100% ,but onclick in not work https://code.sololearn.com/WHBu0UI5py6c/?ref=app
7 Respuestas
+ 2
try min-height: 100vh instead of height: 100%
+ 1
Thank Taste
0
Mohammad ,hello
It seems to work.
Once the menu opened, wherever I click it is closing...(using Android mobile).
0
It work just when you click on navbar or side navigation drawer but on the body isn't work
0
I actually test it on my host but never work
http://sarbaz59.b6b.ir/?i=1
0
I don't know enough, maybe you shouldn't give width to the body...
0
It solved