Changing javascript context in chrome extension

Viewed 565

I have an element inside an iframe. If i search on the chrome console for example - document.querySelector(< ELEMENT >) - the element doesn't show up (returns null)

However, if i change the javascript context on the console options, and query again, the element is there.

I want to call that element from a chrome extension.. How can i reference the "document" inside that specific iframe?

The frame element example:

<frame name="SessionA" id="SessionA" scrolling="no" piweb_src="action=../applications/as400/emulator/help.html?IdentTab=SessionA">

The element i want to access example:

<th id="11" onblur="GeneFocusOff(this)" colspan="55" style="color:#FF00FF; ">  RANDOM TEXT </th>
0 Answers
Related