which event allows javascript to inspect a loaded document before its links
are resolved?
I am trying to write a simple XUL application which loads an iframe with a
page .
I want to inspect and perhaps modify the html/script of the loaded document
page before it is executed.
I assume this is possible?
( I understand that addeventlistener 'load' event simply informs that a
document has loaded - but that document continues to load )
Is there something like loaddocumentandsuspend() and continue()
.. any examples?
I use the load event listening to in the XUL containing the browser
element i.e. to look whether there are any interesting elements in the
browser content like link elements for the navigation or other
interesting stuff. I never detected any delay in updating my GUI stuff
or content caused by the event coming to late. When I see the content,
everything to be done is already done, so I don't see a problem in using
addeventlistener for the load event.