J
Jeppe 1971
Hi
Does anyone know of a way to load a HTML-page and examine the document
without activating the code?
I am trying to create a search-function in javascript.
The idea is that the function goes through all the HTML-pages on a
site looking for words entered by the user. The results is thereafter
presented to the user (it's a kind of a search-engine).
Creating the search-function is easy. I can do that myself.
The problem is that I can not find a way to load the HTML-pages
without activating them. Whenever a page is loaded into e.g. an
<OBJECT> or <IFRAME> it is activated. And if the body onload-event has
an alert-message, the user will be shown 50 alert-boxes, if there are
50 pages to go through. Not very smart ...
I need a way to pass the loaded document into a string before it is activated.
Best regards,
Jeppe Andersen
Does anyone know of a way to load a HTML-page and examine the document
without activating the code?
I am trying to create a search-function in javascript.
The idea is that the function goes through all the HTML-pages on a
site looking for words entered by the user. The results is thereafter
presented to the user (it's a kind of a search-engine).
Creating the search-function is easy. I can do that myself.
The problem is that I can not find a way to load the HTML-pages
without activating them. Whenever a page is loaded into e.g. an
<OBJECT> or <IFRAME> it is activated. And if the body onload-event has
an alert-message, the user will be shown 50 alert-boxes, if there are
50 pages to go through. Not very smart ...
I need a way to pass the loaded document into a string before it is activated.
Best regards,
Jeppe Andersen