Yes, it is possible to automatically redirect an idle page back to the Home page in Webflow using JavaScript code. Here's an example of how you can achieve this:
1. Open your Webflow project and go to the page where you want to add this functionality.
2. Add an HTML embed element to the page. You can find it in the "Add" panel on the left side of the Webflow Designer.
3. Double-click the HTML embed element to open its settings.
4. In the HTML embed settings, switch to the "Custom Code" tab.
5. Paste the following JavaScript code into the `
```
6. Customize the `idleTimeLimit` variable to set the desired period of idle time (in milliseconds) before the redirect occurs. In the example code, it is set to 5 minutes (5 * 60 * 1000 milliseconds).
7. Replace `window.location.href = '/';` with the actual path of your Home page. The `/` in the example code represents the root directory of your website.
8. Save the changes and publish the website for the code to take effect.
With this code, any user interaction like moving the mouse or pressing a key will reset the idle timer. If no interaction occurs within the specified time limit, the page will automatically redirect back to the Home page.
Note: It's important to test this functionality thoroughly to ensure it doesn't interfere with any other desired behaviors on your website.