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

24th Feb 2020, 12:10 PM
Mohammad
Mohammad - avatar
7 Respuestas
+ 2
try min-height: 100vh instead of height: 100%
24th Feb 2020, 12:54 PM
Taste
Taste - avatar
+ 1
Thank Taste
24th Feb 2020, 12:57 PM
Mohammad
Mohammad - avatar
0
Mohammad ,hello It seems to work. Once the menu opened, wherever I click it is closing...(using Android mobile).
24th Feb 2020, 12:35 PM
EmmanueLZ.
EmmanueLZ. - avatar
0
It work just when you click on navbar or side navigation drawer but on the body isn't work
24th Feb 2020, 12:40 PM
Mohammad
Mohammad - avatar
0
I actually test it on my host but never work http://sarbaz59.b6b.ir/?i=1
24th Feb 2020, 12:41 PM
Mohammad
Mohammad - avatar
0
I don't know enough, maybe you shouldn't give width to the body...
24th Feb 2020, 12:56 PM
EmmanueLZ.
EmmanueLZ. - avatar
0
It solved
24th Feb 2020, 12:57 PM
Mohammad
Mohammad - avatar