Have you ever tried accessing the source code of a web page only to notice the mouse click button has been disabled? You can use the source code of a web page to determine some properties of the webpage. One of the easiest ways to determine what type of script a web page is running on is to view its source code. You could visit a very beautiful website and want to find out what type of content management system (CMS) its running on, simply checking the source code can give you an idea of what you are looking for.
But then this is made impossible when the mouse right click function has been disabled on that web page. So many people will give up and move on to another thing, but today I want to teach you how you can easily view the web page’s source code even if the mouse right click function has been disabled on that web page.
Web pages typically consist of texts written in Html, scripted languages (java, javascript,PHP etc) and graphics. Web browsers can only display the html source code of the web page and cannot display encrypted server side scripts like PHP, ASP etc or compiled modules such as ActiveX Controls.
Different browsers have different tools or shortcuts that can help you view a web page’s source code when the mouse right click function has been disabled. Let’s see how we can check the source code of a web page when the mouse right click function has been disabled.
How to view source code in FIREFOX
To view the source code of a web page in Firefox with the mouse right click function has been disabled, simply go to the Firefox’s browser menu and click on ‘Tools’ then hover your mouse over ‘Web Developer’ from the drop down menu and select ‘Page Source’ from the list to view the page’s source code. See image below
You can also follow the shortcut on your keyboard by holding down the CTRL button and pressing the U button (CTRL+U), and the page source code of that web page will be revealed.
How to view source code in Google Chrome and RockMelt:
To view source code in Google Chrome or RockMelt of a web page with mouse right click function disabled, simply click the ‘Wrench Tool’ in either Google Chrome or RockMelt (the only difference is that while Google Chrome has its wrench tool by the top right corner of the browser, RockMelt has its own on the top left corner of the browser), hover your mouse over the ‘Tools’ and select Page Source from the list. See image below
You can also use same CTRL+U as used in Firefox to view source code in Google Chrome and RockMelt web browsers even if the mouse right click function has been disabled.
Must Read: RockMelt: The Social Web Browser
How to view source code in Opera
The above process is a bit different with Opera web browser. To view source code of a web page with mouse right click function disabled, you have to click on the Opera menu, hover your mouse over ‘Page’ and then hover it again over ‘Developer Tools’ and select page source.
You can also use the CTRL+U keyboard shortcut to view source code in Opera with mouse right click function disabled.
How to view source code in Internet Explorer
To view source code of a web page in Internet explorer with the mouse right click function disabled, simply click on ‘Tools’ and select the F12 Developer Tools, then the source code will be displayed at the lower end of the browser in a pop up. See image below
You can also use the CTRL+U keyboard shortcut to view the source code of any web page in internet explorer even if the mouse right click function has been disabled.
Must Read: Will Internet Explorer 10 save the browser from extinction?
I hope you can now be able to view the source code of any web page in any web browser following the guidelines in this tutorial. What do you think of this article? Share your views with me using the comment form below. Remember to subscribe to my RSS feeds.
instead of this long process go to tools and options and Disable Javascript…everything will be done…Right click and View page source. Hope it helps :D
This is yet another option, but then disabling javascript on your browser may mean some properties wont be functional.
Bravo, the article informative and you are on the other hand insightful. True lots of people are going to give up after trying to inspect the element behind a webpage.
Thanks for the compliment….am glad you like the article.
very helpful topic