Can I fill the input in iframe with specified content through js?

you can view directly
or

.
   

Can

be implemented? Cross-domain is not cross-domain, mainly because there is no train of thought.

Mar.26,2021

provide an idea that can be modified directly through dom, for example:

window.frames[0].document.getElementById('kw').value = '';

however, if you use Baidu, cross-domain will be blocked by browsers. If you don't cross-domain, you won't intercept.
you can create a local file and try the following code,

<body>
  <button id="save">DOM</button>
  <iframe src="02.html"></iframe>
  <script>
    var save = document.getElementById('save');
    save.addEventListener('click', function () {
      window.frames[0].document.body.innerText = '';
    });
  </script>
</body>
Menu