how to create a hold screen to pop up div. any help? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

how to create a hold screen to pop up div. any help?

I'm creating a webapp and I want to add a hold event to a div, anyone knows how I do it

13th Oct 2022, 12:49 AM
Solo
Solo - avatar
13 Answers
+ 3
By hold screen do you mean Modal (A div that shows on top of the screen and unless you interact with it you cannot go back to main page )
13th Oct 2022, 1:09 AM
Morpheus
Morpheus - avatar
+ 3
As a user how does someone hold a div? do they use mouse , keyboard or anything else.
13th Oct 2022, 1:55 AM
Morpheus
Morpheus - avatar
+ 3
That means either use mouse over event or just use hover pseudo class
13th Oct 2022, 2:10 AM
Morpheus
Morpheus - avatar
+ 2
Can you give an example link or clearly describe what the holding of screen looks like to a normal user.
13th Oct 2022, 1:25 AM
Morpheus
Morpheus - avatar
+ 2
I see. Just add a 'selected' class to that div which you want to highlight on click or hover. In that selected class define all that you want to highlight.
13th Oct 2022, 1:30 AM
Morpheus
Morpheus - avatar
0
morpheus, I want to create a hold event
13th Oct 2022, 1:24 AM
Solo
Solo - avatar
0
like other applications, I want to create a div that when a user holds it it pops up another div with some info on it.
13th Oct 2022, 1:27 AM
Solo
Solo - avatar
0
yes I don't want a click event, I want a hold event how do I create a hold event
13th Oct 2022, 1:31 AM
Solo
Solo - avatar
0
mouse over
13th Oct 2022, 2:08 AM
Solo
Solo - avatar
0
pressing the div
13th Oct 2022, 2:09 AM
Solo
Solo - avatar
0
ok but I don't wanna click on it, I want hold it
13th Oct 2022, 2:19 AM
Solo
Solo - avatar
0
Be clear what u want..
14th Oct 2022, 5:48 PM
Bharat Bhushan
Bharat Bhushan - avatar
0
Up
5th Feb 2023, 12:03 PM
Zaw Win
Zaw Win - avatar