I've got something like this in my index.html

```
<link rel="stylesheet" href="style.css" type="text/css" />
<script src="jquery-3.2.1.min.js"></script>
<script src="jquery.js"></script>

<iframe id="main" src="https://forexample.com"></iframe>

```

jQuery.js code is:

```
$(document).ready(function(){
  $('#main').load(function(){
    $('submit').click();
  });
});

```

I want automatically click submit button while window page is loading.

Could you help me or give me some tips?

Best regards

Tom