How to iframe start using the console?

How to launch an iframe from another site via the console?
March 23rd 20 at 19:10
1 answer
March 23rd 20 at 19:12
var iframe = document.createElement('iframe');
iframe.src = '';

And then look at the message
Refused to display '' in a frame because it set 'X-Frame-Options' to 'sameorigin'.
because divorced Fisher, you know:)

But if dogovoritsya with the target website that they gave you access - it will work as you want.

Find more questions by tags JavaScript