How do I call a Javascript function from Python?

i need to call java script function from python. so how i can achieve it .

1 Like

Ref: Frappe Ajax Call

Thank you sir,
But i need call js function from python , can call python method not js function i think. please help me.

What is the use case of the calling the javascript function in the python?

i make a whitelist() Function and put it into Hourly scheduler_events in
this python function need to call some Javascript …so i can execute this JS every Hour by calling this python Func …

all i need to Do is to execute some JavaScript every Hour