I am trying to open a new tab using JavaScript and then I want to get the url of the newly opened tab. I did some research and figured out it is something related to parent (current tab) and child (newly opened) tab communication.
I am able to open the new tab using the script:
url='https://www.google.com/'+home;
window.open(url, '_blank');
I want to get the url of my newly opened tab here in this script as you can see i have opened /home so it change the new url to
https://store.google.com/magazine/compare_nest_speakers_displays?srp=/product/google_home
.
I want to get that new url in my script.