Explore with  

[Easiest way] View website’s page source when right click is disabled

Hello friends,
In this tutorial I will show you the easiest way to view a website page source in a browser. This method is applicable on most of the modern web browsers like Chrome, Safari and Firefox. I don’t know about others, but if it worked please let me know through comments. So let’s start.

The only thing you have to do is to insert view-source: before the website url.
For example: You want to view my page’s source. Now the only thing you have to do is insert view-source: before my url i.e.. view-source:http://www.ishaanrawat.com.

That’s it…!!!

I am not sure but you can also view source via this method on a mobile (In the above mentioned browsers).

So try it and comment if something goes wrong… Till then Happy Coding!!

About the Author

Ishaan Rawat is a Web Designer and Developer living in Jaipur. He loves to code and learn programming. He can be found solving public issues and problems on Experts-Exchange or Wordpress Forums. He is presently a Guru in Experts-Exchange having more than 150,000 points in HTML, CSS. You can find him on , , and .

Comments / Remarks
Harsh on March 31, 2014 commented: Yes it does work on mobile devices (At least the ones i tried). Also there is an option in Tools under Customize button on chrome in the top right under close.
Archit Gupta on December 12, 2014 commented: after getting into page source, lot of unwanted info is also coming. What to do for that ?
Rahul on August 6, 2015 commented: with this page source, i believe anyone can make a phishing page ??
Vishwajeet Pandey on February 16, 2016 commented: That was easy to view a source code of any website but what if i want to edit source code of the website.
Hamza on October 19, 2016 commented: Great tip.... thanks
sagar Kapurkar on March 21, 2017 commented: really thanks! its helpfull
c on May 3, 2017 commented: It works a treat, great simple tip,thank u !
Add your comment