Any ideas !!
Can you please share more details ?
At this moment it is only possible to add onKeyPress event to a user input element.
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 !!
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:
I wanna do that with a key pressed , not with a button
action listener for the hole page on key pressed