PHP Developers Network
http://forums.devnetwork.net/

Can Javascript disable HREF's first click?
http://forums.devnetwork.net/viewtopic.php?f=13&t=143329
Page 2 of 2

Author:  simonmlewis [ Fri Feb 03, 2017 7:19 am ]
Post subject:  Re: Can Javascript disable HREF's first click?

I'm learning as I go with this sort of stuff.
I don't know how to add a "touchstart event listener".
:hover works on some mobiles, as it adapts to use it via a tap, except Android. Tho logically, it shouldn't work on mobile at all.
So how do I code what you have described?
As you can see, this is needed for the main dropdown, but also the Category dropdowns too.

Author:  requinix [ Fri Feb 03, 2017 7:26 am ]
Post subject:  Re: Can Javascript disable HREF's first click?


Author:  simonmlewis [ Fri Feb 03, 2017 7:28 am ]
Post subject:  Re: Can Javascript disable HREF's first click?

Can you show me a short 'fiddle' version of what you are getting at?
I've looked at that page, but I no zero about that sort of code, so to do the rest of what you have described, it's not in my power!

If I see an example, I can get my head around it, and see what's what.

Author:  requinix [ Fri Feb 03, 2017 7:48 am ]
Post subject:  Re: Can Javascript disable HREF's first click?

Take a read through . In the meantime I need to eat.

Author:  requinix [ Fri Feb 03, 2017 8:59 am ]
Post subject:  Re: Can Javascript disable HREF's first click?

https://jsfiddle.net/v2dvq1ds/3/

Page 2 of 2 All times are UTC - 5 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/