How to... (i can't explain the question, please take a look) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 6

How to... (i can't explain the question, please take a look)

I can't explain, lemme give examples I want to close the dropfown list by clicking the "back" button in my navigation bar, How to do that?

20th Jan 2019, 6:09 AM
Jingga Sona
Jingga Sona - avatar
14 Answers
+ 23
So Jingga, I think you wanna use the ◀ button on your phone or in your browser. Am I right?
21st Jan 2019, 4:37 PM
🇺🇦 Vitya 🇺🇦
🇺🇦 Vitya 🇺🇦 - avatar
+ 9
Jingga Sona 🐺 read my previous answers.
22nd Jan 2019, 8:51 AM
Rowsej
Rowsej - avatar
+ 7
Well, I have (sort of) tried to make an attempt. If you go onto https://web-utilities.glitch.me/sololearn/jingga_sona.html, try entering some different values. If (sort of) explains how it works.
22nd Jan 2019, 8:48 AM
Rowsej
Rowsej - avatar
+ 7
@rowseh Its say "Not Found"
22nd Jan 2019, 8:50 AM
Jingga Sona
Jingga Sona - avatar
+ 6
If you want a dropdown navigation bar to close, I would add a class that opens it up when you press the navigation bar button, and I would then remove the class when the back button is pressed. I’ll give you an example soon.
20th Jan 2019, 6:28 AM
Rowsej
Rowsej - avatar
+ 6
My example: https://code.sololearn.com/W7QfrcncnoVZ/?ref=app A bit different from what I explained before, but does the same thing
20th Jan 2019, 6:53 AM
Rowsej
Rowsej - avatar
+ 6
Jingga Sona 🐺 I’m a bit confused here. Could you please explain some more?
21st Jan 2019, 1:33 AM
Rowsej
Rowsej - avatar
+ 6
Ahhhh sorry, wring link! I’ll find it now!
22nd Jan 2019, 8:49 AM
Rowsej
Rowsej - avatar
22nd Jan 2019, 8:52 AM
Rowsej
Rowsej - avatar
+ 5
Yes i am confused by my own question😅 lemme give a screenshoot in a code for you
21st Jan 2019, 12:11 PM
Jingga Sona
Jingga Sona - avatar
+ 5
Vitya yes... thats what i want😂😅 its so hard to explqin that😅
22nd Jan 2019, 8:46 AM
Jingga Sona
Jingga Sona - avatar
+ 5
Nice! Thanks A Lot Rowsej
22nd Jan 2019, 8:56 AM
Jingga Sona
Jingga Sona - avatar
+ 4
Rowsej yes but in most application, most of the menubar is closed by the "back" button, so, if you accidently tap the "back" button because you are get used by the most applications, it will quit the application, like what bobbie's freecodeexamples App in playstore
20th Jan 2019, 9:06 AM
Jingga Sona
Jingga Sona - avatar