html - getting url of window opened with jquery -


i trying find out href of youtube video associated button. button located in page don't own. application uses rails backend.

the html element:

<a href="#" class="lnk" title="whatever">     <span class="ifram-you"></span>     <span class="tub-container"></span>     <span class="tube-i"></span> </a> 

after clicking button, new window opens , jquery dynamically assigns youtube video using youtube api. far have tried:
1. using gem mechanize see window jquery opens, mechanize isnt able follow javascript.
2. assigning button.click() var in console. doesnt work either, click returns undefined

i know referrer of new window clicked button. there way of knowing if window opened pop-up or if window other window's referer?

otherwise, problem solvable other approach?


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -