HTMLview contents

After receiving a web page into an HTMLview, how can i get the contents of the HTMLview?
I tried to work around by giving an ID and getting the elementbyID but it didn’t work

HTMLview is a wrapper for an HTML iframe element. Text which comes from another site cannot be read or modified due to cross origin restrictions.

luckily the apk is not affected by this issue when i use:
$("#box").load(ToSend, function(responseTxt, statusTxt, jqXHR){ …
otherwise I need to use headers like this on the server for debugging:
header(“Access-Control-Allow-Origin: *”);