I was beating my head against the wall for the last two days but finally solved my own problem. I thought I would post it here in case anyone else was having the same problem, plus I think I found a good practice whenever using
WebView1.JSInitCode = myScriptI had an extensive javascript (about 4k compressed) I was "inserting" with JSInitCode.
The main functions were listeners, and they weren't running on all web sites unless the page was refreshed. After investigating, I found they were "inserted" into the page but just didn't work until a refresh, on some pages (which is was very confusing).
ANYWAY - the solution was that the javascript needed to be inserted into an onload function...!!!!
NOTE: THIS ONLY APPLIES TO LISTENERS....Quote:
window.onload = function () {
eoWebBrowser.extInvoke('windowLoaded', [String(window.location)]);
// MY FUNCTIONS AND STUFF.....
}