I need to open console and run one function on new tab, that I opened using javascrip. The opening part is easy, but how to run function on other tab?
A common solution is using localstorage.
if (typeof(Storage) !== "undefined") { // Code for localStorage/sessionStorage. localStorage.setItem("lastname", "Smith"); var lastname = localStorage.getItem("lastname"); } else { // Sorry! No Web Storage support.. }