I have implemented the {onmouseover}
variable with the <a>
tag to trigger the script function on hover. Here is an example:
<a class="tooltip" href="#" onmouseover="tooltip.pop(this, '#tip3', {sticky:true, position:0, cssClass:'no-padding'})">Lorem, ipsum.</a>
While this works well for desktop pages, it poses a challenge for mobile pages.
I am looking to switch the {onmouseover}
variable to {onclick}
for mobile screens (less than 768px)
.
Is this feasible? If so, I would appreciate any guidance on how to address this issue.
Thank you in advance.