Here are 2 options to quickly view all the JavaScript used on a web page. Could come in handy when trying to find event handlers or specific code without searching through individual files.

  1. Option 1: Bookmarklet – A bookmarklet (drag it to your bookmarks) by Ichiro Hiroshi to see all JavaScript’s used on the web page includes script links only and inline code.
  2. Option 2: Web Developer Toolbar – A Firefox add-in that allows you to view all JavaScript loaded on page, it includes all content of include scripts and inline code.

The Bookmarklet

Just drag this button into your bookmarks then run on any page to see scripts.

The Code

javascript: (function () {
    s = document.getElementsByTagName('SCRIPT');
    tx = '';
    sr = [];
    for (i = 0; i < s.length; i) {
        with(s.item(i)) {
            t = text;
            if (t) {
                tx = t;
            } else {
    with( {
        document.write('<textarea id="t">' (sr.join("n"))"nn-----nn"
        tx '<script src=""></script><script>with(document.getElementById("t")){value=js_beautify(value);with(style){width="99%";height="99%";borderStyle="none";}};</script>');

Firefox Developer Toolbar

Install the Firefox Add-on.


Visit any web page, select from the toolbar > Information > View JavaScript.


It shows you all JavaScript used on the page including the content within the included .js files too.


Sam Deering Sam Deering
Sam Deering is a Front-end Web Developer who specialises in JavaScript & jQuery. Sam is driven and passionate about sharing his knowledge to educate others.
  • Morrison

    THIS for (i = 0; i < s.length; i) IS SUPPOSED TO BE THIS for (i = 0; i < s.length; i++)
    THIS document.write('’ (sr.join(“n”))”nn—–nn” tx’ SHOULD BE document.write(”+sr.join(“n”)+’nn—–nn’+tx+’

Stay ahead of the game Exclusive content for developers and digital experts Go Premium