Hi I want to run javascript after loading subpanel

in cases module cases module have relationship with notes module i want when user click on notes module then the subpanel will be load i want run javascript after loading subpanel
image
please help how can i do this

You can add custom javascript to the edit view of the notes module.

Take a look here: