How to trigger a function while i open doctype listview "every time"?

I want to trigger function every time I open page.
For now, I am using onload function like this:

frappe.ui.form.on(MyDoctype, {
    onload: function(frm) {
        onload function here;
    }
});

But I just found out that onload function only triggered at the first time I open the route (URL), if I change URL/route, and then I back to that URL(route) again the onload function didn’t call.

How to solve it?

Thanks before.

@Yusuf_Afandi
trigger function on refresh event in place of onload

refer to this link https://github.com/frappe/frappe/wiki/Developer-Cheatsheet for more information regarding events for DocType