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
Solution
var iframe = document.createElement('iframe');
iframe.src = 'https://google.com';
document.body.appendChild(iframe);

And then look at the message
Refused to display 'https://www.google.com/' 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