Forum Discussion
APM Modern Customization - modify Header in user-common.js and form in user-logon.js
hey!
thanks, I already identified the elements I need to change and use the getElementsByClassName already in the code (see above).
I just dont't know how to modify the header section via user-common.js and the content section via the user-logon.js with react/preact framework.
- zamroni777Nov 22, 2024Nacreous
you can try put the the code within window.onload to make sure the code in executed when the page fully are loaded:
https://developer.mozilla.org/en-US/docs/Web/API/Window/load_event"use strict";
window.onload = async function() {
....your js codes here...
}
and in your user-logon.js, the content object is replaced with newly created element.
so the next lines actually doesnt modify document.getElementsByClassName('apmui-content')[0]var content = document.getElementsByClassName('apmui-content')[0];
var content = document.createElement('div');
you can add console.log(content) to see the object details Devtool's Console tab.
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com