Antwise community forums
get html full source ?? - Printable Version

+- Antwise community forums (https://forums.antwise.com)
+-- Forum: Antview (https://forums.antwise.com/forumdisplay.php?fid=11)
+--- Forum: Antview for Windows (https://forums.antwise.com/forumdisplay.php?fid=12)
+--- Thread: get html full source ?? (/showthread.php?tid=159)



get html full source ?? - hys999 - 2023-07-17

After page loading complete, html source
What's the obvious way to get it?
I have referenced the sources already listed, but there is some confusion.
get html source
I would appreciate it if you could tell me how to optimize again.

Currently I
document.documentElement.innerHTML
I'm getting it through a JavaScript call.
But I think you already have the source loaded.
This is because they think that asking again will cost them time.


RE: get html full source ?? - wila - 2023-07-17

Hi,

All methods for getting the html source use javascript.
There's also RequestCurrentHtml in the Document interface.
See the FillForm example on how-to use the Document interface.

But note that it also uses javascript under the hood.. so not sure how much you'll gain with that.
Running this via javascript does not need to retrieve the source from the server again. It is already loaded in the browser and the javascript that you inject is run within the loaded page.

--
Wil