According to this page , you can safely access the script in the parent , which is an object that refers to the document of the parent frame frame.
From a small local test, the onload parent event does not seem to fire , but its script tag seems to have been processed before loading the child frames.
Frames frowned these days, so be sure this is the right approach.
source share