Javascript console in mobile browser | android chrome console trick – codewithrandom

Javascript console in mobile browser | android chrome console trick – codewithrandom

Welcome to codewithrandom blog, in this article we learn how to access the developer console in our chrome browser by typing a simple command. Basically, we use eruda ,eruda is a console for mobile browsers. So here is the code so you copy-paste in your browser.

 javascript:(function () { var script = document.createElement('script'); script.src="//cdn.jsdelivr.net/npm/eruda";   
document.body.appendChild(script); script.onload = function () { eruda.init() } })();

Copy-paste this code and open your mobile browser then paste this, and the browser removes javascript: word from this line so type javascript: manually and click on search or enter, then you see an icon like in the below image.

When you click on this icon you see the same console like we see in our pc or laptop browser so click on the icon that appears in corner, below the image.

After clicking on this icon you can run any javascript comments or do calculations like we do in-browser so I just write 10+90 and click on executed and the answer is 100 and show output like desktop browsers.


If you want to know more about Eruda check the GitHub repository and read about how code execution in mobile browsers!


if you have any confusion do comment so I reply  as soon as possible. Thank you for reading!

written by @codewith_random

Check out more…..

Articles Web story

Leave a Reply