I am trying to create a quiz platform for students based on google forms. So i basically embedded the google form as an iframe in my site and would like to start a timer and if the timer finished, the form should be submitted automatically.
I know that I can call a function in the iframe using this code
document.getElementById('targetFrame').contentWindow.targetFunction();
However, I need to know the function that gets called when the submit button is pressed