Any ideas !!
Thnx
Hi Nabeel,
Can you please share more details ?
At this moment it is only possible to add onKeyPress event to a user input element.
Roi
Hi Roi, Yeah i want to attach that (onKeyPress)event to the page it self ⌠for example when a visitor enter the website if he press EnterKey he will be directed to another page !!
Or we can solve this by a popup question on home page loading ⌠But how !!
thank you
Hi Dear, if you mean that you want to redirect to the home page for example when someone clicks on the home button, just import wixLocation from âwix-locationâ; to the page that contains the button
and through the developers tool fire the on click event and inside that event write that code:
wixLocation.to(âyour locationâ);
Regards,
#Rawabi
Thanks
I wanna do that with a key pressed , not with a button
action listener for the hole page on key pressed