Hi. I have a vba code that I am using to check whether the HTML BODY tag of a page is empty or not.
Empty page means following:
- The page showing plain white in browser. view-source also shows plain white page.
- The page showing plain white in browser. view-source shows some tags like SCRIPT, META tag inside BODY tag and no text.
Tried running IsEmpty(response) to check if there is some response coming and result is False. That means there is something coming as response.
Problem is that for some blank pages this is not working. The page shows plain white and view-source shows nothing but the IsEmpty(response) gives false. I tried iterating through the HTML response and using tagName property and it gives HTML, HEAD, BODY. But nothing visible. Tried removing the newlines, carriage return and space but not working.
Here is the code:
Bookmarks