Is there any event handler before onLoad/onPageShow? The trouble with onLoad is if there is any change in display, the page will show up without change until it is fully loaded, then the script will run. What is the best way to make sure it will run as soon as possible?
<script> tag, they will be executed during page loading - before the onLoad event is fired.
The caveat is that you cannot search for elements by ID because these element might not have been rendered yet, so your ability to change the page that way is limited.
Bottom line: possible, not recommended.
What I usually do in such situations is as follows:
©2020 All rights reserved.