how To get elements values to pull into javascript file onload. A command mode code example
Example: on load javascript
window.onload = (event) => {
console.log('page is fully loaded');
};
window.onload = (event) => {
console.log('page is fully loaded');
};