0

This is the same question like trying to use console of a new window.

my project requires me to do so and i need solution:

For example:

var popup = window.open("https://www.google.de");

popup.alert("Hello GOOGLE!"); // this work fine!

popup.console.log("Hello Google!"); //  this won't display in Console Panel Chrome!

How can i get using only with Javascript to put some text in opening window and display in Console Panel?

Please enlighten me!

goethe
  • 35
  • 8
  • Do you control the site you are opening in the new window? – Shyam Babu Mar 16 '18 at 10:46
  • Hello Shyam Babu, no, i don't controll this website. I don't wish to control, only to insert some text in Input tag! – goethe Mar 16 '18 at 12:32
  • 1
    I don't think that use case is possible. That would be a security violation. Imagine if you opened a site and it opened your Facebook and started posting on you behalf. If you are looking for automation look at protractor or chrome drivers. but the above one will not possible. – Shyam Babu Mar 16 '18 at 13:20
  • Okay, i understand. thank you very much for your reply. – goethe Mar 16 '18 at 13:29

0 Answers0