I am trying to write javascript code (and put it in a bookmarklet later) that will autofill some textbox on a webpage.
document.getElementById("textboxID").value = "Some Text"
The problem i have seems to be execution context. This code works only if i inspect element first, or if manually change execution context form top to the one selected (ext-gen65).
.
Whats is the (or is there) a proper way to do this?
EDIT:
When i use document.getElementById('ext-gen65').contentWindow.document
i get Cannot read propery 'document' of undefined error.