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

java - How to specify maven bin in eclipse maven plugin? -

Error while updating a record in APEX screen -

c++ - In an add-in in Excel, written in C(++), how does one get the name of the function which called into the addin? -