Custom script run when click on New

Dear Community,

How do I get a custom script running on upon creating a new document?

What happen is,
from an existing document, I click back on web browser and click New, the custom script did not run.

My script works when I do it proper.


Is there any error on browser console?

Hi @saurabh6790 ,

There is: