Onload: why commonly used in js and not python


Is there a problem to use onload in python?
I am asking this question because 99% of the onload triggers are used in .js and not in .py, why?


The difference between onload using python and onload using JS is the following:
Using JavaScript, it will load the data even when the document is new.
But using python: it will load the data only when the document is already saved and we are opening it.
Also using JavaScript, it will be displayed at the field when loading the document (new or not new), but using python you might need to refresh the page to be displayed because of the browser cash.

1 Like

Please note, that JavaScript and Java are totally different languages. I’ve edited your post accordingly.