Android Editorial How To Tips Tools Web Apps

How to view source code of any webpage on android(without any App)

Written by Rohit Salve


Viewing source code of any webpage is the main problem that many newcomers to frontend web development face while designing new websites.The process of viewing source code of any webpage is quite simple in Firefox,google chrome etc.

For example,In Mozilla Firefox,if you want to view the source of a webpage, simply click on the view tab, select view source from the options and its(source code) right there on your screen.

If you are a google chrome user,it becomes more easy than Firefox.For the page you wanna view source code of,just enter the text “view source:” at the starting of the URL in the address bar like this:


And in No time the code snippet appears on your screen.It doesn’t matter whether you’re using chrome on your mobile or PC,this method works well for both.

Also have a look at the list of sites to download free music online

But when it comes to view source of a webpage in android,the path becomes too narrow as there are very few methods available to view source code on android’s stock web browser.But don’t worry !! We are here today to discuss the same.So,let’s start 🙂

Learn how to download anything using Torrents


  • Open browser.
  • Enter any URL you want to get the source code of.
  • Paste this string in the address bar of the browser:
[sociallocker id=”1630″] “javascript: alert(document.getElementsByTagName(‘html’)[0].innerHTML);” [/sociallocker]

Note:JavaScript is case sensitive!!

The best Encrypted messaging apps you should use

  • After pasting the above snippet,hit “go”.


And in no time, the source code is there on your screen in a pop-up window without formatting.

In this way,you can have the source code of any web page in just seconds!This trick is quite handy and takes very less,you note it down somewhere for future use 🙂

Top 10 music players for low end Android devices

If you find this post interesting and informative, plz do share it with your friends and relatives via Facebook ,Twitter & Google+.

About the author

Rohit Salve

Hi I am Rohit Salve. I am the owner and editor of this blog. I love tech and like to write about it.

Leave a Comment