Using "onload" in Bubble

Hi! I need to use a condition to work on the oage loads for specific objects inside a JavaScript using the plugin Toolbox (please don’t suggest to use the workflow “When page loads” or something similar, I need to do it inside the JavaScript).

I can use “onclick”, “onmouseover” but “onloads” doesn’t work. Can you please help me?

the load event fires before your code is executed so of course it doesn’t work.
You should be ok taking your code out of the event listener.

If you have something like a header menu in a group at the top of your page, you could create a condition that recognises when that group ‘is visible’.