Created
July 24, 2024 16:15
-
-
Save HubSpotHanevold/2faf27054b1c66ac1c5dd7080d72a09b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <script> | |
| document.addEventListener("DOMContentLoaded", function() { | |
| // Wait for the form to load | |
| setTimeout(function() { | |
| var urlInput = document.querySelector('input[name="url_of_page"]'); | |
| if (urlInput) { | |
| console.log('url_of_page input exists'); | |
| urlInput.value = window.location.href; | |
| } | |
| },1000); // Adjust the delay if needed | |
| }); | |
| </script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment