We recently obtained an innovative Enterprise Talent Management Solution that is cloud-based. One standout feature allows users to incorporate HTML Widgets with scripts on the primary Welcome Page.
The customization options for the Welcome Page UI are quite extensive, but once you navigate away from this page, it becomes inaccessible.
In a basic test, we successfully added a jQuery script to one HTML Widget to modify the URL of specific clickable elements on the screen, yielding excellent results. We aim to use this approach to enhance the UI by concealing unnecessary components or applying unique styles to improve aesthetics, as well as adding new fields solely for display purposes.
HTML Widgets can only be placed on the Welcome Page; when navigating to another section like "My Training Record," the script within the HTML Widget ceases to function - which is expected.
I am aware that injecting JavaScript into the Head Element is feasible, but my concern lies in whether the script would disappear after a refresh.
Question: Is there a way to inject JavaScript into the Head Element so that it remains persistent even after a page refresh and continues to function correctly?
I am contemplating a solution that could automatically reinject itself post-page refresh. Is such a scenario viable?