0

My navbar is showing error when I click menu but it's working in PC. Could you tell me why .

https://code.sololearn.com/Wa25A10a21a1/?ref=app

22nd Apr 2021, 10:07 AM
๐—ฃ๐—ฎ๐˜„๐—ฎ๐—ป ๐—ž๐˜‚๐—บ๐—ฎ๐—ฟ ๐Ÿ…Ÿ๏ธŽ๐Ÿ…š๏ธŽ
๐—ฃ๐—ฎ๐˜„๐—ฎ๐—ป ๐—ž๐˜‚๐—บ๐—ฎ๐—ฟ ๐Ÿ…Ÿ๏ธŽ๐Ÿ…š๏ธŽ - avatar
3 Antwoorden
+ 2
Thanks ๐Ÿ˜Š brother now it working
22nd Apr 2021, 2:18 PM
๐—ฃ๐—ฎ๐˜„๐—ฎ๐—ป ๐—ž๐˜‚๐—บ๐—ฎ๐—ฟ ๐Ÿ…Ÿ๏ธŽ๐Ÿ…š๏ธŽ
๐—ฃ๐—ฎ๐˜„๐—ฎ๐—ป ๐—ž๐˜‚๐—บ๐—ฎ๐—ฟ ๐Ÿ…Ÿ๏ธŽ๐Ÿ…š๏ธŽ - avatar
+ 1
Try removing window onload(){..} function cause the task performs after window querySelector making it undefined. This is what I figured out.
22nd Apr 2021, 11:41 AM
Aditya
Aditya - avatar
+ 1
Pawan Kumar When you call function from an element then don't write function inside window.onload function
22nd Apr 2021, 11:54 AM
AอขJ
AอขJ - avatar