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
Post a Comment