I'm trying to inject a bit of javascript into a page to change a few variables.
However the page has an onbeforeunload event.,
window.onbeforeunload = afunction;
<body onbeforeunload="afunction">
thus when i try put java script: lines into the address bar, this event fires (because it thinks im trying to navigate away from the page).
i have tried a _IEDocReadHTML then remove the events, then a _IEDocWriteHTML (and a _IEAction($oIE, "refresh")) so it actually loads up.
however when executing the refresh the onbeforeunload even still loads. (the page im trying to play with deflares a frameset (i understand i HAVE to do that refresh so it actually builds the frame set again).
i think im looking for some way to execute javascript in that browser instance via COM or something similar, anything that wont fireaway a navigate away style event.
any ideas would be great