Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

inspecting/modifying a loaded page before page executes

3 views
Skip to first unread message

rvj

unread,
Oct 26, 2009, 4:46:43 AM10/26/09
to
Very basic question -

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?


Georg Maaß

unread,
Nov 8, 2009, 9:37:57 AM11/8/09
to
rvj wrote:
> Very basic question -
>
> 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 )

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.

0 new messages