Viewing HTML source code inside Android Browser

If you want to have a look into source code of the HTML page currently loaded inside the Android’s default browser type the following javascript snippet in the address bar of the browser:

javascript: alert(document.getElementsByTagName(‘html’)[0].innerHTML);

Leave a Reply

Your email address will not be published. Required fields are marked *