Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 497017
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T05:44:29+00:00 2026-05-13T05:44:29+00:00

I’ve seen javascript (and written some too) to show the contents of input tags

  • 0

I’ve seen javascript (and written some too) to show the contents of input tags (useful if the guy before you left a password in an input…), but I want to use JS to show the Javascript variables that exist in the page.

The reason I want to do this is because I want to check out a file sharing site to see if it’s real or just a rootkit hotbed.

Any ideas?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T05:44:29+00:00Added an answer on May 13, 2026 at 5:44 am

    There are DOM inspectors in both IE and FF. In older IE versions you’ll want the Document Tree section of their Web Developer Accessories. In IE8 there go to Tools->Developer Tools and there you have a nice little console to play with that will show you these things. In FF you can use the built in DOM inspector or Firebug (my personal favourite). There is also this bookmarklet, here is the code (cleaned up):

    <html>
        <head>
            <script type="text/javascript">
                var wer = "asdasd";
    
                function getEm()
                {
                    var x,d,i,v,st;
                    x=open();
                    d=x.document;
                    d.open();
    
                    function hE(s)
                    {
                        s=s.replace(/&/g,"&amp;");
                        s=s.replace(/>/g,"&gt;");
                        s=s.replace(/</g,"&lt;");
                        return s;
                    }
    
                    d.write("<style>td{vertical-align:top; white-space:pre; } table,td,th { border: 1px solid #ccc; } div.er { color:red }</style><table border=1><thead><tr><th>Variable</th><th>Type</th><th>Value as string</th></tr></thead>");
    
                    for (i in window)
                    {
                        if (!(i in x) )
                        {
                            v=window[i];
                            d.write("<tr><td>" + hE(i) + "</td><td>" + hE(typeof(window[i])) + "</td><td>");
                            if (v===null)
                                d.write("null");
                            else if (v===undefined)
                                d.write("undefined");
                            else
                                try
                                {
                                    st=v.toString();
                                    if (st.length)
                                        d.write(hE(v.toString()));
                                    else
                                        d.write("%C2%A0")
                                }
                                catch(er)
                                {
                                    d.write("<div class=er>"+hE(er.toString())+"</div>")
                                }
    
                            d.write("</pre></td></tr>");
                        }
                    }
    
                    d.write("</table>");
                    d.close();
                }
            </script>
        </head>
        <body onload="getEm()">
        </body>
    </html>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and
For some reason, after submitting a string like this Jack’s Spindle from a text
I used javascript for loading a picture on my website depending on which small
Basically, what I'm trying to create is a page of div tags, each has
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I am reading a book about Javascript and jQuery and using one of the
I am trying to render a haml file in a javascript response like so:
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
Configuring TinyMCE to allow for tags, based on a customer requirement. My config is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.