I have a javascript debug code that I need to run from time to time on specific website.
The site has several iframes.
When I use Chrome's debug console I can choose which iFrame to run the code.
I created a bookmark with the code javascript:my_debug_code()
- but how can I tell it to run on the iFrame I need?
Edit
This is not a duplicate of Invoking JavaScript code in an iframe from the parent page as was suggested.
Since I wasn't trying to run the code from the page itself.
My question is different - I want to run the code from a bookmark.
Answer
I can't post a new answer, because question is marked is duplicated.
But taken from @Gothdo answer, apparently all it took for me was to add to my bookmark:
javascript:window.frames[0].my_debug_code()